diff options
author | William Tu <u9012063@gmail.com> | 2016-02-09 14:31:16 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-02-10 11:16:14 -0800 |
commit | 880f5c03f8641f2670d05376f5dbdda439e0cc1b (patch) | |
tree | 4093cf9bd4fd0c2bf391f72a472ff59728549277 /ovsdb | |
parent | 9ecd64492ade6d2dcee040005a1d57db14a8e3c2 (diff) | |
download | openvswitch-880f5c03f8641f2670d05376f5dbdda439e0cc1b.tar.gz |
ovsdb-client: Fix memory leak reported by valgind.
Testcase 1429: ovsdb-server/add-db and remove-db.
xmemdup0 (util.c:142)
main (ovsdb-client.c:133)
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb')
-rw-r--r-- | ovsdb/ovsdb-client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c index 06155ec31..980cd9a85 100644 --- a/ovsdb/ovsdb-client.c +++ b/ovsdb/ovsdb-client.c @@ -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); } |