From f6eb1f17a1b34b2f2fb49feb09bb03a8263be56f Mon Sep 17 00:00:00 2001 From: Chinmaya Panigrahi Date: Fri, 12 Sep 2014 23:07:18 +0200 Subject: [PATCH] edje: prevent resource leak. Summary: The pointer used is not freed at the end of the function which results resource leak. @fix Test Plan: Not Available Reviewers: seoz, raster, cedric Reviewed By: cedric Subscribers: raster, seoz, cedric Differential Revision: https://phab.enlightenment.org/D1438 Signed-off-by: Cedric BAIL --- src/bin/edje/epp/cpplib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c index 5f2fc21d76..77da3acdbf 100644 --- a/src/bin/edje/epp/cpplib.c +++ b/src/bin/edje/epp/cpplib.c @@ -3525,6 +3525,8 @@ do_include(cpp_reader * pfile, struct directive *keyword, if (angle_brackets) pfile->system_include_depth--; } + if (fname) + free(fname); return 0; }