[sr-dev] git:master:adcad344: presence_dialoginfo : fix memory leak

lazedo luis.azedo at factorlusitano.com
Mon Dec 28 05:10:43 CET 2015


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

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2015-12-28T04:10:39Z

presence_dialoginfo : fix memory leak


missing xmlFreeDoc from commit b6b7de8832e4ab22ef2c00ebb2c1e1b6ced9ff35

---

Modified: modules/presence_dialoginfo/notify_body.c

---

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

---

diff --git a/modules/presence_dialoginfo/notify_body.c b/modules/presence_dialoginfo/notify_body.c
index 710fe91..a701c01 100644
--- a/modules/presence_dialoginfo/notify_body.c
+++ b/modules/presence_dialoginfo/notify_body.c
@@ -604,7 +604,7 @@ str *dlginfo_body_setversion(subs_t *subs, str *body) {
 	}
 	pkg_free(aux_body->s);
         xmlDocDumpFormatMemory(doc,(xmlChar**)(void*)&aux_body->s, &aux_body->len, 1);
-
+	xmlFreeDoc(doc);
         xmlCleanupParser();
         xmlMemoryDump();
 




More information about the sr-dev mailing list