Skip to content

Commit

Permalink
pv_headers: free hash entry in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Oct 26, 2020
1 parent 3dca5cd commit 46c7a8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/pv_headers/pvh_hash.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 46c7a8c

Please sign in to comment.