From 5fa70e6c2dba71aaad0f5c6acdd938519690860b Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 13 Sep 2022 15:07:10 +1000 Subject: Don't free what is not allocated. --- src/sledjchisl/sledjchisl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 7216b8f..c02cba9 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -9858,9 +9858,9 @@ fcgiDone: qhashtbl_free(Rd->stuff); qhashtbl_free(Rd->valid); qhashtbl_free(Rd->headers); - qhashtbl_free(Rd->cookies); - qhashtbl_free(Rd->body); - qhashtbl_free(Rd->queries); + if (NULL != Rd->cookies) qhashtbl_free(Rd->cookies); + if (NULL != Rd->body) qhashtbl_free(Rd->body); + if (NULL != Rd->queries) qhashtbl_free(Rd->queries); if (Rd->lnk) free(Rd->lnk); free(Rd->RUri); free(Rd->title); -- cgit v1.1