diff options
author | MS <ms@taler.net> | 2020-07-15 15:58:45 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2020-07-15 15:58:45 +0200 |
commit | 577710bff80a4d9000886d6f3e42c747ddce868f (patch) | |
tree | 478a768ce01416f97bc21bb3cef625814e09d32a /src/backend/taler-merchant-httpd.c | |
parent | 0a74c9cd713c49cf9bc071ec6758425a1464518c (diff) | |
download | merchant-577710bff80a4d9000886d6f3e42c747ddce868f.tar.gz merchant-577710bff80a4d9000886d6f3e42c747ddce868f.tar.bz2 merchant-577710bff80a4d9000886d6f3e42c747ddce868f.zip |
check before free
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |