From 0f55bd298e5db8824a1aee2e49fb1d56e7a3860c Mon Sep 17 00:00:00 2001 From: Yunjian Wang Date: Mon, 27 Aug 2018 19:52:55 +0800 Subject: [PATCH] dpctl: Fix memory leak in dp_exists(). Fixes: ffdcd110fa62 ("dpctl: Make opt_dpif_open() more general.") Signed-off-by: Yunjian Wang Signed-off-by: Ben Pfaff --- lib/dpctl.c | 2 ++ 1 file changed, 2 insertions(+) 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; }