summaryrefslogtreecommitdiff
path: root/ovsdb/ovsdb-server.c
diff options
context:
space:
mode:
authoryinpeijun <yinpeijun@huawei.com>2014-07-28 15:21:17 +0800
committerBen Pfaff <blp@nicira.com>2014-07-28 09:20:24 -0700
commit0ded15d4bc31e06b5638406f16483336db2ec275 (patch)
tree0d3e173fe28211e6f5d728eaec1e2eeed248fd9c /ovsdb/ovsdb-server.c
parentabadfcb05d7bc723029d40c04dba0fc0993413c4 (diff)
downloadopenvswitch-0ded15d4bc31e06b5638406f16483336db2ec275.tar.gz
Fix two memory leaks.
Found by coverity. Signed-off-by: yinpeijun <yinpeijun@huawei.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ovsdb/ovsdb-server.c')
-rw-r--r--ovsdb/ovsdb-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c
index 13dfa68ae..a0b8f3092 100644
--- a/ovsdb/ovsdb-server.c
+++ b/ovsdb/ovsdb-server.c
@@ -540,6 +540,7 @@ query_db_string(const struct shash *all_dbs, const char *name,
&db, &table, &column);
if (retval) {
ds_put_format(errors, "%s\n", retval);
+ free(retval);
return NULL;
}