[phonemgr] Fix harmless leak



commit 70912b961bfb422cf75f942884fccc897290c526
Author: Daniele Forsi <dforsi src gnome org>
Date:   Mon Jan 24 10:50:29 2011 +0100

    Fix harmless leak
    
    Valgrind output:
    ==26704== 100 bytes in 1 blocks are definitely lost in loss record 2,607 of 2,741
    ==26704==    at 0x4024F12: calloc (vg_replace_malloc.c:467)
    ==26704==    by 0x4C795FB: g_malloc0 (in /lib/libglib-2.0.so.0.2600.0)
    ==26704==    by 0x4C796C2: g_malloc0_n (in /lib/libglib-2.0.so.0.2600.0)
    ==26704==    by 0x804F4B8: main (main.c:58)

 src/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 8b607fd..ed6de81 100644
--- a/src/main.c
+++ b/src/main.c
@@ -111,6 +111,7 @@ main (int argc, char **argv)
 	g_object_unref (app->listener);
 	g_object_unref (app->client);
 	g_object_unref (app->object);
+	g_free (app);
 
 	return 0;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]