commit 577710bff80a4d9000886d6f3e42c747ddce868f
parent 0a74c9cd713c49cf9bc071ec6758425a1464518c
Author: MS <ms@taler.net>
Date: Wed, 15 Jul 2020 15:58:45 +0200
check before free
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
@@ -532,7 +532,8 @@ handle_mhd_completion_callback (void *cls,
if (NULL != hc->cc)
hc->cc (hc->ctx);
TALER_MHD_parse_post_cleanup_callback (hc->json_parse_context);
- GNUNET_free (hc->infix);
+ if (NULL != hc->infix)
+ GNUNET_free (hc->infix);
if (NULL != hc->request_body)
json_decref (hc->request_body);
if (NULL != hc->instance)