From 6b607ff3efac551fa9a6bf1277bf22d38310ada8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 21 Feb 2013 20:52:23 +0000 Subject: [PATCH] fixed memory leak in find_default_device() (nw) --- src/lib/portmidi/finddefaultlinux.c | 1 + 1 file changed, 1 insertion(+) 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