[1/2] wpp: Free strings on define deletion (Valgrind).

Matteo Bruni matteo.mystral at gmail.com
Fri Feb 18 12:54:15 CST 2011


-------------- next part --------------
From 93b3427dd7f96ba200f67afb291b4426f479fc69 Mon Sep 17 00:00:00 2001
From: Matteo Bruni <mbruni at codeweavers.com>
Date: Mon, 7 Feb 2011 14:39:57 +0100
Subject: wpp: Free strings on define deletion (Valgrind).

---
 libs/wpp/preproc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libs/wpp/preproc.c b/libs/wpp/preproc.c
index 2eb3133..c88bff5 100644
--- a/libs/wpp/preproc.c
+++ b/libs/wpp/preproc.c
@@ -310,6 +310,9 @@ void pp_del_define(const char *name)
 		return;
 	}
 
+	free( ppp->ident );
+	free( ppp->subst.text );
+	free( ppp->filename );
 	free_pp_entry( ppp, pphash(name) );
 
 	if(pp_status.debug)
-- 
1.7.3.4


More information about the wine-patches mailing list