[Pkg-voip-commits] r9765 - in /kamailio/trunk/debian: changelog patches/series patches/upstream/0010-modules_k-registrar-Fixed-memory-leak-in-reg_fetch_c.patch

maniac-guest at alioth.debian.org maniac-guest at alioth.debian.org
Wed Jun 6 13:33:03 UTC 2012


Author: maniac-guest
Date: Wed Jun  6 13:33:02 2012
New Revision: 9765

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=9765
Log:
upstream fix

Added:
    kamailio/trunk/debian/patches/upstream/0010-modules_k-registrar-Fixed-memory-leak-in-reg_fetch_c.patch
Modified:
    kamailio/trunk/debian/changelog
    kamailio/trunk/debian/patches/series

Modified: kamailio/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/kamailio/trunk/debian/changelog?rev=9765&op=diff
==============================================================================
--- kamailio/trunk/debian/changelog (original)
+++ kamailio/trunk/debian/changelog Wed Jun  6 13:33:02 2012
@@ -27,7 +27,7 @@
   * debian/backports
     + added squeeze script
 
- -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 30 May 2012 08:46:48 +0200
+ -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 06 Jun 2012 15:31:31 +0200
 
 kamailio (1.5.1-2) unstable; urgency=low
 

Modified: kamailio/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/kamailio/trunk/debian/patches/series?rev=9765&op=diff
==============================================================================
--- kamailio/trunk/debian/patches/series (original)
+++ kamailio/trunk/debian/patches/series Wed Jun  6 13:33:02 2012
@@ -7,6 +7,7 @@
 upstream/0007-modules_k-dialog-Fixed-2-macros-for-dialog-state-wit.patch
 upstream/0008-modules_k-auth_radius-fixed-typo-in-README.patch
 upstream/0009-rtpproxy-handle-UPDATE-in-rtpproxy_manage.patch
+upstream/0010-modules_k-registrar-Fixed-memory-leak-in-reg_fetch_c.patch
 multiarch_support.patch
 no_INSTALL_file.patch
 spelling-errors.patch

Added: kamailio/trunk/debian/patches/upstream/0010-modules_k-registrar-Fixed-memory-leak-in-reg_fetch_c.patch
URL: http://svn.debian.org/wsvn/pkg-voip/kamailio/trunk/debian/patches/upstream/0010-modules_k-registrar-Fixed-memory-leak-in-reg_fetch_c.patch?rev=9765&op=file
==============================================================================
--- kamailio/trunk/debian/patches/upstream/0010-modules_k-registrar-Fixed-memory-leak-in-reg_fetch_c.patch (added)
+++ kamailio/trunk/debian/patches/upstream/0010-modules_k-registrar-Fixed-memory-leak-in-reg_fetch_c.patch Wed Jun  6 13:33:02 2012
@@ -1,0 +1,34 @@
+From b9726b9fb4538c74ce898c28fdee962f2cf22853 Mon Sep 17 00:00:00 2001
+From: Anca Vamanu <anca.vamanu at 1and1.ro>
+Date: Wed, 6 Jun 2012 15:49:57 +0300
+Subject: [PATCH] modules_k/registrar Fixed memory leak in
+ reg_fetch_contacts() (cherry picked from commit
+ ac28b3b8dd34cfac290f1941a575841261c9ed97)
+
+---
+ modules_k/registrar/regpv.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/modules_k/registrar/regpv.c b/modules_k/registrar/regpv.c
+index 7f5f8ec..119d483 100644
+--- a/modules_k/registrar/regpv.c
++++ b/modules_k/registrar/regpv.c
+@@ -466,6 +466,7 @@ int pv_fetch_contacts(struct sip_msg* msg, char* table, char* uri,
+ 		if(c0==NULL)
+ 		{
+ 			LM_ERR("no more pkg\n");
++			ul.release_urecord(r);
+ 			ul.unlock_udomain((udomain_t*)table, &aor);
+ 			goto error;
+ 		}
+@@ -517,6 +518,7 @@ int pv_fetch_contacts(struct sip_msg* msg, char* table, char* uri,
+ 		ptr0 = c0;
+ 		ptr = ptr->next;
+ 	}
++	ul.release_urecord(r);
+ 	ul.unlock_udomain((udomain_t*)table, &aor);
+ 	rpp->nrc = n;
+ 	LM_DBG("fetched <%d> contacts for <%.*s> in [%.*s]\n",
+-- 
+1.7.9.5
+




More information about the Pkg-voip-commits mailing list