rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=52110067ee0a44f399aaafa15c1d30e28606c03c

commit 52110067ee0a44f399aaafa15c1d30e28606c03c
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Mon Sep 26 15:21:16 2016 +0300

    project manager2: fix resource leak
    
    @svace WGID 23245 23249 23250
    
    Change-Id: Ic33dd79321f540367d28eb4e2e86fb595fbc3ba6
---
 src/bin/exporter/eflete_exporter.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/exporter/eflete_exporter.c 
b/src/bin/exporter/eflete_exporter.c
index ee1d2bf..8af2266 100644
--- a/src/bin/exporter/eflete_exporter.c
+++ b/src/bin/exporter/eflete_exporter.c
@@ -228,6 +228,7 @@ _sounds_resources_export(void *data __UNUSED__)
           {
              fprintf(stderr, "ERROR: Could not export sound '%s', Unable to 
write file.\n", sound_file);
              _terminate();
+             fclose(f);
              return;
           }
         if (f) fclose(f);
@@ -292,6 +293,7 @@ _fonts_resources_export(void *data __UNUSED__)
           {
              fprintf(stderr, "ERROR: Could not export font '%s', Unable to 
write file.\n", font_file);
              _terminate();
+             fclose(f);
              goto exit;
           }
         if (f) fclose(f);
@@ -332,6 +334,7 @@ _group_source_code_export(const char *group)
    if (EDJE_LOAD_ERROR_NONE != edje_error)
      {
         fprintf(stderr, "ERROR: Edje object load error: %s\n", 
edje_load_error_str(edje_error));
+        fclose(f);
         return NULL;
      }
    code = edje_edit_source_generate(edje_obj);

-- 


Reply via email to