summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/dhcp-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/dhcp-test.c b/tools/dhcp-test.c
index 3b599afb..cf4ff71d 100644
--- a/tools/dhcp-test.c
+++ b/tools/dhcp-test.c
@@ -39,7 +39,7 @@
static GTimer *timer;
-static GMainLoop *main_loop = NULL;
+static GMainLoop *main_loop;
static void sig_term(int sig)
{
@@ -185,5 +185,7 @@ int main(int argc, char *argv[])
g_main_loop_unref(main_loop);
+ g_timer_destroy(timer);
+
return 0;
}