[sr-dev] git:master: ipops: free dns pv structure on invalid pv name

Daniel-Constantin Mierla miconda at gmail.com
Wed May 14 23:44:43 CEST 2014


Module: sip-router
Branch: master
Commit: e53c715c74fb5b58f4f68b81acb60de66b19b8cc
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e53c715c74fb5b58f4f68b81acb60de66b19b8cc

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed May 14 23:08:06 2014 +0200

ipops: free dns pv structure on invalid pv name

---

 modules/ipops/ipops_pv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/ipops/ipops_pv.c b/modules/ipops/ipops_pv.c
index d6edadd..f4f3e1c 100644
--- a/modules/ipops/ipops_pv.c
+++ b/modules/ipops/ipops_pv.c
@@ -262,6 +262,7 @@ int pv_parse_dns_name(pv_spec_t *sp, str *in)
 
 error:
 	LM_ERR("error at PV dns name: %.*s\n", in->len, in->s);
+	if(dpv) pkg_free(dpv);
 	return -1;
 }
 




More information about the sr-dev mailing list