projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5208098
)
edje: prevent resource leak.
author
Chinmaya Panigrahi
<c.panigrahi@samsung.com>
Fri, 12 Sep 2014 21:07:18 +0000
(23:07 +0200)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Fri, 12 Sep 2014 21:08:26 +0000
(23:08 +0200)
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>
src/bin/edje/epp/cpplib.c
patch
|
blob
|
history
diff --git
a/src/bin/edje/epp/cpplib.c
b/src/bin/edje/epp/cpplib.c
index
5f2fc21
..
77da3ac
100644
(file)
--- 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;
}