diff options
author | Justus Winter <[email protected]> | 2017-07-18 11:39:29 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-07-18 11:49:22 +0000 |
commit | 3d670fa973a03ea88b5f9459b3222a951136dd7a (patch) | |
tree | 48c8afe8edfbb0596bf3ca255fa6e82d5fdac9fe /dirmngr/http.c | |
parent | gpg,sm: Check compliance of the RNG. (diff) | |
download | gnupg-3d670fa973a03ea88b5f9459b3222a951136dd7a.tar.gz gnupg-3d670fa973a03ea88b5f9459b3222a951136dd7a.zip |
dirmngr: Fix memory leak.
* dirmngr/http.c (http_release_parsed_uri): Free 'params'.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'dirmngr/http.c')
-rw-r--r-- | dirmngr/http.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c index 0544c9bc7..3baa53a59 100644 --- a/dirmngr/http.c +++ b/dirmngr/http.c @@ -1255,6 +1255,11 @@ http_release_parsed_uri (parsed_uri_t uri) { uri_tuple_t r, r2; + for (r = uri->params; r; r = r2) + { + r2 = r->next; + xfree (r); + } for (r = uri->query; r; r = r2) { r2 = r->next; |