small leak in config registry item add
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 14 Dec 2012 09:04:23 +0000 (09:04 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 14 Dec 2012 09:04:23 +0000 (09:04 +0000)
SVN revision: 80920

src/bin/e_configure.c

index 429166d..20cf49d 100644 (file)
@@ -498,9 +498,9 @@ _e_configure_registry_item_full_add(const char *path, int pri, const char *label
           ecat->items = eina_list_sorted_insert(ecat->items, EINA_COMPARE_CB(_e_configure_compare_cb), eci);
         else
           ecat->items = eina_list_sorted_insert(ecat->items, EINA_COMPARE_CB(_e_configure_compare_pri_cb), eci);
-        free(cat);
         break;
      }
+   free(cat);
 }
 
 static void