[sr-dev] [kamailio/kamailio] http_async_client frees pointer twice(Kamailio 5.0.4) (#1340)
Victor Seva
notifications at github.com
Thu Dec 21 15:44:53 CET 2017
@grumvalski will this fix this issue?
```
--- a/src/modules/http_async_client/http_multi.c
+++ b/src/modules/http_async_client/http_multi.c
@@ -330,8 +330,10 @@ static void *curl_shm_malloc(size_t size)
}
static void curl_shm_free(void *ptr)
{
- if (ptr)
+ if (ptr) {
shm_free(ptr);
+ ptr = NULL;
+ }
}
static void *curl_shm_realloc(void *ptr, size_t size)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1340#issuecomment-353368139
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20171221/655b1e2d/attachment.html>
More information about the sr-dev
mailing list