git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix minor memory leaks found by valgrind.
[sliver-openvswitch.git]
/
ovsdb
/
ovsdb-tool.c
diff --git
a/ovsdb/ovsdb-tool.c
b/ovsdb/ovsdb-tool.c
index
ecf998b
..
e83b49a
100644
(file)
--- a/
ovsdb/ovsdb-tool.c
+++ b/
ovsdb/ovsdb-tool.c
@@
-252,6
+252,10
@@
compact_or_convert(const char *src_name, const char *dst_name,
}
lockfile_unlock(dst_lock);
+
+ if (in_place) {
+ free((char *) dst_name);
+ }
}
static void