Module: sip-router
Branch: 3.2
Commit: 77d3b19501d7d0e885f18900021fd9d797230448
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=77d3b19…
Author: Anca Vamanu <anca.vamanu(a)1and1.ro>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 26 15:27:21 2012 +0200
modules/pua Fixed memory leaks in limbxml2
(cherry picked from commit 68295d124ee2d36f3e8d31eac5a76c4d7c89f5b8)
---
modules_k/pua/send_publish.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/pua/send_publish.c b/modules_k/pua/send_publish.c
index 3523cbc..75a28a8 100644
--- a/modules_k/pua/send_publish.c
+++ b/modules_k/pua/send_publish.c
@@ -571,7 +571,7 @@ send_publish:
if( body && ret_code)
{
if(body->s)
- free(body->s);
+ xmlFree(body->s);
pkg_free(body);
}
if(etag.s)
@@ -595,7 +595,7 @@ error:
if(body&& ret_code)
{
if(body->s)
- free(body->s);
+ xmlFree(body->s);
pkg_free(body);
}
if(str_hdr)