[PATCH 4/5] wpp: Free the include filename when it can't be opened (Valgrind). (resend)
Matteo Bruni
mbruni at codeweavers.com
Fri Jun 13 08:08:53 CDT 2014
---
libs/wpp/ppl.l | 1 +
1 file changed, 1 insertion(+)
diff --git a/libs/wpp/ppl.l b/libs/wpp/ppl.l
index 70bd213..0c0d2fd 100644
--- a/libs/wpp/ppl.l
+++ b/libs/wpp/ppl.l
@@ -1604,6 +1604,7 @@ void pp_do_include(char *fname, int type)
if((fp = pp_open_include(fname+1, type, pp_status.input, &newpath)) == NULL)
{
ppy_error("Unable to open include file %s", fname+1);
+ free(fname);
return;
}
--
1.8.5.5
More information about the wine-patches
mailing list