Destroy timer of DHCP test program
[framework/connectivity/connman.git] / tools / dhcp-test.c
index 133ed95..cf4ff71 100644 (file)
 #include <net/ethernet.h>
 #include <linux/if_arp.h>
 
-#include <gdhcp.h>
+#include <gdhcp/gdhcp.h>
 
 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;
 }