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>
This commit is contained in:
Chinmaya Panigrahi 2014-09-12 23:07:18 +02:00 committed by Cedric BAIL
parent 520809864d
commit f6eb1f17a1
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}