2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

dpctl: Fix memory leak in dp_exists().

Fixes: ffdcd110fa ("dpctl: Make opt_dpif_open() more general.")
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Yunjian Wang
2018-08-27 19:52:55 +08:00
committed by Ben Pfaff
parent 2ea84e98e4
commit 0f55bd298e

View File

@@ -202,6 +202,8 @@ dp_exists(const char *queried_dp)
sset_destroy(&dpif_names); sset_destroy(&dpif_names);
sset_destroy(&dpif_types); sset_destroy(&dpif_types);
free(queried_name);
free(queried_type);
return found; return found;
} }