diff options
author | 2013-02-21 20:52:23 +0000 | |
---|---|---|
committer | 2013-02-21 20:52:23 +0000 | |
commit | 6b607ff3efac551fa9a6bf1277bf22d38310ada8 (patch) | |
tree | 55d3668eab892a14f124dfba879b8affd1595ac0 | |
parent | eb230095357de077e3b9768217d906a624d1a6d5 (diff) |
fixed memory leak in find_default_device() (nw)
-rw-r--r-- | src/lib/portmidi/finddefaultlinux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/portmidi/finddefaultlinux.c b/src/lib/portmidi/finddefaultlinux.c index f381a5821dc..e59bd39437d 100644 --- a/src/lib/portmidi/finddefaultlinux.c +++ b/src/lib/portmidi/finddefaultlinux.c @@ -63,6 +63,7 @@ PmDeviceID find_default_device(char *path, int input, PmDeviceID id) } strcat(full_name, pref_3); inf = fopen(full_name, "r"); + free(full_name); if (!inf) goto nopref; // cannot open preference file // We're not going to build or link in a full XML parser. // Instead, find the path string and quoute. Then, look for |