Module: sip-router
Branch: master
Commit: ed60b891f915017b385a722f2a9c0bf171802eab
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ed60b89…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Apr 21 21:47:06 2014 +0200
rr: free forgotten allocated local variable trans in case of error
---
modules/rr/record.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/rr/record.c b/modules/rr/record.c
index 33da5bc..3ccd452 100644
--- a/modules/rr/record.c
+++ b/modules/rr/record.c
@@ -714,6 +714,7 @@ static inline int build_advertised_rr(struct lump* _l, struct lump*
_l2, str *_d
return 1;
lump_err:
if (hdr) pkg_free(hdr);
+ if (trans) pkg_free(trans);
if (suffix) pkg_free(suffix);
if (term) pkg_free(term);
if (r2) pkg_free(r2);