From 82ff4f40455a910ef42dd3692af5c1c9dfb8d4c1 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 26 Oct 2020 09:17:02 +0100 Subject: [PATCH] pv_headers: free hash entry in case of error (cherry picked from commit 46c7a8c0bf2b4d5c00e22a751f95f13263686445) --- src/modules/pv_headers/pvh_hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/pv_headers/pvh_hash.c b/src/modules/pv_headers/pvh_hash.c index 89f93f77b87..80297bcaafe 100644 --- a/src/modules/pv_headers/pvh_hash.c +++ b/src/modules/pv_headers/pvh_hash.c @@ -85,6 +85,7 @@ int pvh_str_hash_add_key(struct str_hash_table *ht, str *key) err: pvh_str_free(&e->key); + pkg_free(e); return -1; }