summaryrefslogtreecommitdiff
path: root/lib/dpctl.c
diff options
context:
space:
mode:
authorYunjian Wang <wangyunjian@huawei.com>2018-08-27 19:52:55 +0800
committerBen Pfaff <blp@ovn.org>2018-08-27 09:05:18 -0700
commit0f55bd298e5db8824a1aee2e49fb1d56e7a3860c (patch)
treecc794aa753002bf8f3573ca3c77056d86b3a4c87 /lib/dpctl.c
parent2ea84e98e457384cbb3257133a4e652b8e5b1cf2 (diff)
downloadopenvswitch-0f55bd298e5db8824a1aee2e49fb1d56e7a3860c.tar.gz
dpctl: Fix memory leak in dp_exists().
Fixes: ffdcd110fa62 ("dpctl: Make opt_dpif_open() more general.") Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/dpctl.c')
-rw-r--r--lib/dpctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dpctl.c b/lib/dpctl.c
index 743944de3..2f8498f47 100644
--- a/lib/dpctl.c
+++ b/lib/dpctl.c
@@ -202,6 +202,8 @@ dp_exists(const char *queried_dp)
sset_destroy(&dpif_names);
sset_destroy(&dpif_types);
+ free(queried_name);
+ free(queried_type);
return found;
}