Module: wine Branch: master Commit: e32598b04667472be33ffea3ad1e7f9ba6af921e URL: http://source.winehq.org/git/wine.git/?a=commit;h=e32598b04667472be33ffea3ad...
Author: Matteo Bruni mbruni@codeweavers.com Date: Mon Feb 7 14:39:57 2011 +0100
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)