diff options
author | Chinmaya Panigrahi <c.panigrahi@samsung.com> | 2014-09-12 23:07:18 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2014-09-12 23:08:26 +0200 |
commit | f6eb1f17a1b34b2f2fb49feb09bb03a8263be56f (patch) | |
tree | 36cca0b16644b5836b87dcfb1d9afb0c63017b7e /src/bin/edje | |
parent | 520809864db744675e0596934614ca4fcd2578cf (diff) |
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 <cedric@osg.samsung.com>
Diffstat (limited to 'src/bin/edje')
-rw-r--r-- | src/bin/edje/epp/cpplib.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
3525 | if (angle_brackets) | 3525 | if (angle_brackets) |
3526 | pfile->system_include_depth--; | 3526 | pfile->system_include_depth--; |
3527 | } | 3527 | } |
3528 | if (fname) | ||
3529 | free(fname); | ||
3528 | return 0; | 3530 | return 0; |
3529 | } | 3531 | } |
3530 | 3532 | ||