Module: sip-router
Branch: master
Commit: d5c4dda7932e8efe018beb77f8ca2e29a44aa185
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d5c4dda…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu May 30 17:59:01 2013 +0200
core: don't free pvar spec - is reference to cache
- reported by Peter Dunkley
---
cfg.y | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cfg.y b/cfg.y
index 0e5f8b1..5f88d13 100644
--- a/cfg.y
+++ b/cfg.y
@@ -2696,7 +2696,7 @@ rval: intno {$$=mk_rve_rval(RV_INT, (void*)$1); }
| STRING { s_tmp.s=$1; s_tmp.len=strlen($1);
$$=mk_rve_rval(RV_STR, &s_tmp); }
| attr_id_any {$$=mk_rve_rval(RV_AVP, $1); pkg_free($1); }
- | pvar {$$=mk_rve_rval(RV_PVAR, $1); pkg_free($1); }
+ | pvar {$$=mk_rve_rval(RV_PVAR, $1); }
| avp_pvar {
switch($1->type){
case LV_AVP: