From 039bfd3e517f75cf99eb8eb105d3b83692f6e484 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 8 May 2013 00:22:55 +0200 Subject: coverity#983096: Resource leak Change-Id: I91c1d505ef0b0eb442bf76e4da66c95fa0e1bb2d Reviewed-on: https://gerrit.libreoffice.org/3818 Reviewed-by: Noel Power Tested-by: Noel Power --- rsc/source/rscpp/cpp3.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rsc/source') diff --git a/rsc/source/rscpp/cpp3.c b/rsc/source/rscpp/cpp3.c index df5a2c7acf70..7dbdef92b3a3 100644 --- a/rsc/source/rscpp/cpp3.c +++ b/rsc/source/rscpp/cpp3.c @@ -194,6 +194,7 @@ int AddInclude( char* pIncStr ) *incend++ = pIncPos; pIncPos = strtok( NULL, ";" ); } + free(pIncEnv); return( 1 ); } -- cgit v1.2.3