Commit 8d1126e9 authored by Emilio Pozuelo Monfort's avatar Emilio Pozuelo Monfort Committed by Ulrich Sibiller

Plug a memory leak

This was introduced in 8ea762f. Reported-by: 's avatarJulien Cristau <jcristau@debian.org> Signed-off-by: 's avatarEmilio Pozuelo Monfort <pochu@debian.org> Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 5d4a7e07
...@@ -98,12 +98,14 @@ int *actualCount) /* RETURN */ ...@@ -98,12 +98,14 @@ int *actualCount) /* RETURN */
*ch = '\0'; /* and replace with null-termination */ *ch = '\0'; /* and replace with null-termination */
count++; count++;
} else { } else {
Xfree(ch);
Xfree(flist); Xfree(flist);
flist = NULL; flist = NULL;
count = 0; count = 0;
break; break;
} }
} else { } else {
Xfree(ch);
Xfree(flist); Xfree(flist);
flist = NULL; flist = NULL;
count = 0; count = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment