summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
30ef430)
If setting the oss parameters (sample format, sample rate, channel
count) fails, we end up freeing the private_oss_data struct twice.
{
struct private_oss_write_data *powd = wn->private_data;
{
struct private_oss_write_data *powd = wn->private_data;
+ if (powd->fd >= 0)
+ close(powd->fd);
return 1;
err:
close(powd->fd);
return 1;
err:
close(powd->fd);