pv: remove useless condition
[sip-router] / src / modules / pv / pv_trans.c
index 3012126..62574c4 100644 (file)
@@ -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;