From 577710bff80a4d9000886d6f3e42c747ddce868f Mon Sep 17 00:00:00 2001 From: MS Date: Wed, 15 Jul 2020 15:58:45 +0200 Subject: check before free --- src/backend/taler-merchant-httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/taler-merchant-httpd.c') diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index cbc7774b..031c6ca8 100644 --- 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) -- cgit v1.2.3