aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-04-15 14:38:32 +0200
committerChristian Grothoff <christian@grothoff.org>2023-04-15 14:38:32 +0200
commit07a089f4f167854f8ed3036475efc8171ade5d69 (patch)
tree47406ac905080d271445deff1afa5428611224c3 /src/lib
parenteb2b4a131bd6f69e91e0efdfc1798e53bb022e89 (diff)
downloadexchange-07a089f4f167854f8ed3036475efc8171ade5d69.tar.xz
-fix memory leak
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/auditor_api_deposit_confirmation.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/auditor_api_deposit_confirmation.c b/src/lib/auditor_api_deposit_confirmation.c
index afbeda75a..55a05d962 100644
--- a/src/lib/auditor_api_deposit_confirmation.c
+++ b/src/lib/auditor_api_deposit_confirmation.c
@@ -362,10 +362,16 @@ TALER_AUDITOR_deposit_confirmation (
dh->ctx.headers,
&handle_deposit_confirmation_finished,
dh);
- /* Disable 100 continue processing */
- GNUNET_CURL_extend_headers (dh->job,
- curl_slist_append (NULL,
- "Expect:"));
+ {
+ /* Disable 100 continue processing */
+ struct curl_slist *x_headers;
+
+ x_headers = curl_slist_append (NULL,
+ "Expect:");
+ GNUNET_CURL_extend_headers (dh->job,
+ x_headers);
+ curl_slist_free_all (x_headers);
+ }
return dh;
}