ovsdb-client: Fix memory leak reported by valgind.
[cascardo/ovs.git] / ovsdb / ovsdb-client.c
index 06155ec..980cd9a 100644 (file)
@@ -145,6 +145,7 @@ main(int argc, char *argv[])
 
     if (argc - optind < command->min_args ||
         argc - optind > command->max_args) {
+        free(database);
         VLOG_FATAL("invalid syntax for '%s' (use --help for help)",
                     command->name);
     }