Module: kamailio
Branch: master
Commit: 1f50cd26ba0db88fd5f2c33e2b44a461f471e760
URL:
https://github.com/kamailio/kamailio/commit/1f50cd26ba0db88fd5f2c33e2b44a46…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-27T13:13:21+02:00
pv: remove useless condition
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1f50cd26ba0db88fd5f2c33e2b44a46…
Patch:
https://github.com/kamailio/kamailio/commit/1f50cd26ba0db88fd5f2c33e2b44a46…
---
diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index 3012126ff6..62574c46f5 100644
--- a/src/modules/pv/pv_trans.c
+++ b/src/modules/pv/pv_trans.c
@@ -2534,11 +2534,10 @@ char* tr_parse_uri(str* in, trans_t *t)
LM_ERR("unknown transformation: %.*s/%.*s!\n", in->len,
in->s, name.len, name.s);
error:
- if(tp)
- tr_param_free(tp);
if(spec)
pv_spec_free(spec);
return NULL;
+
done:
t->name = name;
return p;