fileman_opinfo improper E_FREE and possible leak depending on asprintf implementation
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 14:25:04 +0000 (14:25 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 14:25:04 +0000 (14:25 +0000)
SVN revision: 80867

src/modules/fileman_opinfo/e_mod_main.c

index 4288ef3..2b57cff 100644 (file)
@@ -367,7 +367,8 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
                 e_module_dir_get(opinfo_module));
    if (r < 0)
      {
-        E_FREE(inst);
+        free(inst->theme_file);
+        free(inst);
         return NULL;
      }