[sr-dev] [kamailio/kamailio] coredump when used append_body_part (#1631)
sergey-safarov
notifications at github.com
Mon Sep 3 00:38:55 CEST 2018
I resolved issue after applying this patch. But I not sure that it is all that must be done
```
diff --git a/src/core/data_lump.c b/src/core/data_lump.c
index e033b4e..6592fce 100644
--- a/src/core/data_lump.c
+++ b/src/core/data_lump.c
@@ -644,7 +644,10 @@ void del_nonshm_lump( struct lump** lump_list )
/* update the 'next' link of the previous lump */
*prev = crt;
/* entire before/after list must be removed */
- free_lump_list( foo );
+ if (!(foo->flags&(LUMPFLAG_DUPED|LUMPFLAG_SHMEM)))
+ free_lump_list( foo );
+ if (!(foo->flags&LUMPFLAG_SHMEM))
+ free_duped_lump_list(foo);
} else {
/* check on before and prev list for non-shmem lumps */
r = crt->after;
```
--
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/1631#issuecomment-417964774
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180902/daf86311/attachment.html>
More information about the sr-dev
mailing list