Skip to content
Snippets Groups Projects
Commit d83035aa authored by Ralph Giles's avatar Ralph Giles
Browse files

Fix a memory leak in the OSS driver. The path name and an error

string were leaking whenever open succeeded on the non-devfs
device path.


git-svn-id: http://svn.xiph.org/trunk/ao@9575 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent ce399dfc
No related branches found
No related tags found
No related merge requests found
......@@ -125,12 +125,13 @@ int _open_default_oss_device (char **dev_path, int blocking)
" %s - %s\n",
err, dev,
strerror(errno), *dev_path); */
free(err);
free(dev);
free(*dev_path);
*dev_path = NULL;
}
if (err) free(err);
if (dev) free(dev);
return fd;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment