diff options
author | Justus Winter <justus@g10code.com> | 2017-07-18 13:39:29 +0200 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2017-07-18 13:49:22 +0200 |
commit | 3d670fa973a03ea88b5f9459b3222a951136dd7a (patch) | |
tree | 48c8afe8edfbb0596bf3ca255fa6e82d5fdac9fe /dirmngr/http.c | |
parent | gpg,sm: Check compliance of the RNG. (diff) | |
download | gnupg2-3d670fa973a03ea88b5f9459b3222a951136dd7a.tar.xz gnupg2-3d670fa973a03ea88b5f9459b3222a951136dd7a.zip |
dirmngr: Fix memory leak.
* dirmngr/http.c (http_release_parsed_uri): Free 'params'.
Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to '')
-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; |