alsa: free alibpref after use

This commit is contained in:
Wim Taymans 2021-08-10 11:14:15 +02:00
parent bdc164f509
commit b7162d2c09

View file

@ -52,6 +52,7 @@ int spa_alsa_init(struct state *state)
spa_scnprintf(name, sizeof(name), "%s%s", alibpref, spa_scnprintf(name, sizeof(name), "%s%s", alibpref,
state->props.device); state->props.device);
strcpy(state->props.device, name); strcpy(state->props.device, name);
free((void*)alibpref);
} }
} }
return 0; return 0;