pv: remove useless condition
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 11:13:21 +0000 (13:13 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 11:13:21 +0000 (13:13 +0200)
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;