diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-21 12:29:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-21 12:29:38 +0100 |
commit | 32aa4d0d99a05020a23874f31be931cb79e72cec (patch) | |
tree | ade4b103af515c37ccfe0f9e9d4a814485cac50b | |
parent | 45aa83f172b53e1700826cd223b3d95776b053b4 (diff) | |
download | libmicrohttpd-32aa4d0d99a05020a23874f31be931cb79e72cec.tar.gz libmicrohttpd-32aa4d0d99a05020a23874f31be931cb79e72cec.zip |
fix #8012
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 963aaf04..916ca691 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -653,10 +653,12 @@ MHD_connection_alloc_memory_ (struct MHD_Connection *connection, | |||
653 | { | 653 | { |
654 | struct MHD_Connection *const c = connection; /* a short alias */ | 654 | struct MHD_Connection *const c = connection; /* a short alias */ |
655 | struct MemoryPool *const pool = c->pool; /* a short alias */ | 655 | struct MemoryPool *const pool = c->pool; /* a short alias */ |
656 | size_t need_to_be_freed; /**< The required amount of additional free memory */ | 656 | size_t need_to_be_freed = 0; /**< The required amount of additional free memory */ |
657 | void *res; | 657 | void *res; |
658 | 658 | ||
659 | res = MHD_pool_try_alloc (pool, size, &need_to_be_freed); | 659 | res = MHD_pool_try_alloc (pool, |
660 | size, | ||
661 | &need_to_be_freed); | ||
660 | if (NULL != res) | 662 | if (NULL != res) |
661 | return res; | 663 | return res; |
662 | 664 | ||