Browse code

pv_headers: free hash entry in case of error

Daniel-Constantin Mierla authored on 26/10/2020 08:17:02
Showing 1 changed files
... ...
@@ -85,6 +85,7 @@ int pvh_str_hash_add_key(struct str_hash_table *ht, str *key)
85 85
 
86 86
 err:
87 87
 	pvh_str_free(&e->key);
88
+	pkg_free(e);
88 89
 	return -1;
89 90
 }
90 91