devilhorns pushed a commit to branch master.

commit d3845740959cb5b631de27dc4e1cfe0cf1e84958
Author: Chris Michael <[email protected]>
Date:   Mon Aug 5 14:24:46 2013 +0100

    If efreet_menu_parse returns an actual menu, let's free the memory
    allocated to it before we return.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/tests/efreet/ef_menu.c | 1 +
 1 file changed, 1 insertion(+)

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)
    if (menu)
      {
         printf("efreet_menu_get() didn't return NULL\n");
+        efreet_menu_free(menu);
         return 0;
      }
 

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk

Reply via email to