Catalli's threaded switch
[sliver-openvswitch.git] / utilities / ovs-appctl.c
index 060e8e2..021ac84 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010 Nicira Networks.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -45,7 +45,6 @@ main(int argc, char *argv[])
     int i;
 
     set_program_name(argv[0]);
-    time_init();
 
     /* Parse command line and connect to target. */
     target = parse_command_line(argc, argv);
@@ -71,6 +70,10 @@ main(int argc, char *argv[])
     }
     fputs(reply, stdout);
 
+    unixctl_client_destroy(client);
+    free(reply);
+    ds_destroy(&request);
+
     return 0;
 }
 
@@ -170,7 +173,6 @@ connect_to_target(const char *target)
 
     if (target[0] != '/') {
         char *pidfile_name;
-        char *socket_name;
         pid_t pid;
 
         pidfile_name = xasprintf("%s/%s.pid", ovs_rundir, target);