mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 13:58:14 +00:00
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>
This commit is contained in:
parent
2ea84e98e4
commit
0f55bd298e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user