ovsdb: Add support for referential integrity in the database itself.
[openvswitch] / tests / test-jsonrpc.c
index da92cec90196a10d296a194e7c0c8c83a5887bd8..03d300011cdca47ca71948f24b836b2e12ce5b99 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009 Nicira Networks.
+ * Copyright (c) 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.
@@ -42,6 +42,7 @@ static void parse_options(int argc, char *argv[]);
 int
 main(int argc, char *argv[])
 {
+    proctitle_init(argc, argv);
     set_program_name(argv[0]);
     time_init();
     vlog_init();
@@ -250,9 +251,10 @@ do_listen(int argc UNUSED, char *argv[])
         }
         poll_block();
     }
+    free(rpcs);
+    pstream_close(pstream);
 }
 
-
 static void
 do_request(int argc UNUSED, char *argv[])
 {