Module: sip-router
Branch: 4.0
Commit: 0a6ce4bfe5c8af8063b38f8e00909eff7610c05f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0a6ce4b…
Author: Hugh Waite <hugh.waite(a)acision.com>
Committer: Hugh Waite <hugh.waite(a)acision.com>
Date: Tue Sep 2 16:58:11 2014 +0100
parser/rr: Fix free_rr() parameter
- free_rr() expects an rr_t ** parameter
---
parser/parse_rr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/parser/parse_rr.c b/parser/parse_rr.c
index e3df4f3..0f293eb 100644
--- a/parser/parse_rr.c
+++ b/parser/parse_rr.c
@@ -138,7 +138,7 @@ static inline int do_parse_rr_body(char *buf, int len, rr_t **head)
}
error:
- if (r) free_rr(r);
+ if (r) free_rr(&r);
free_rr(head); /* Free any contacts created so far */
return -1;