projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ecd644
)
ovsdb-client: Fix memory leak reported by valgind.
author
William Tu
<u9012063@gmail.com>
Tue, 9 Feb 2016 22:31:16 +0000
(14:31 -0800)
committer
Ben Pfaff
<blp@ovn.org>
Wed, 10 Feb 2016 19:16:14 +0000
(11:16 -0800)
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>
ovsdb/ovsdb-client.c
patch
|
blob
|
history
diff --git
a/ovsdb/ovsdb-client.c
b/ovsdb/ovsdb-client.c
index
06155ec
..
980cd9a
100644
(file)
--- 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);
}