summaryrefslogtreecommitdiff
path: root/src/tests/efreet
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-08-05 14:24:46 +0100
committerChris Michael <cp.michael@samsung.com>2013-08-05 14:24:46 +0100
commitd3845740959cb5b631de27dc4e1cfe0cf1e84958 (patch)
treed44af2922ba759733dc7ab865c9da240a774d65c /src/tests/efreet
parent8810f69914056a5ee54253c39aeefce4fa22ae4b (diff)
If efreet_menu_parse returns an actual menu, let's free the memory
allocated to it before we return. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/tests/efreet')
-rw-r--r--src/tests/efreet/ef_menu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/efreet/ef_menu.c b/src/tests/efreet/ef_menu.c
index bf9750e..684a353 100644
--- a/src/tests/efreet/ef_menu.c
+++ b/src/tests/efreet/ef_menu.c
@@ -59,6 +59,7 @@ ef_cb_menu_with_slashes(void)
59 if (menu) 59 if (menu)
60 { 60 {
61 printf("efreet_menu_get() didn't return NULL\n"); 61 printf("efreet_menu_get() didn't return NULL\n");
62 efreet_menu_free(menu);
62 return 0; 63 return 0;
63 } 64 }
64 65