[sr-dev] git:master:ffdec6d3: pipelimit: Fix memleak on shutdown

Alex Hermann alex at speakup.nl
Thu Jan 24 14:49:18 CET 2019


Module: kamailio
Branch: master
Commit: ffdec6d38d0935d8af2633e3d3ded8a985ddfcca
URL: https://github.com/kamailio/kamailio/commit/ffdec6d38d0935d8af2633e3d3ded8a985ddfcca

Author: Alex Hermann <alex at speakup.nl>
Committer: Alex Hermann <alex at speakup.nl>
Date: 2019-01-22T16:10:19+01:00

pipelimit: Fix memleak on shutdown

---

Modified: src/modules/pipelimit/pl_ht.c

---

Diff:  https://github.com/kamailio/kamailio/commit/ffdec6d38d0935d8af2633e3d3ded8a985ddfcca.diff
Patch: https://github.com/kamailio/kamailio/commit/ffdec6d38d0935d8af2633e3d3ded8a985ddfcca.patch

---

diff --git a/src/modules/pipelimit/pl_ht.c b/src/modules/pipelimit/pl_ht.c
index 518254f1fa..319d97b1ff 100644
--- a/src/modules/pipelimit/pl_ht.c
+++ b/src/modules/pipelimit/pl_ht.c
@@ -102,6 +102,7 @@ int pl_init_htable(unsigned int hsize)
 
 void pl_pipe_free(pl_pipe_t *it)
 {
+	shm_free(it);
 	return;
 }
 




More information about the sr-dev mailing list