Module: kamailio Branch: master Commit: 288d009b1dcda37b6b116578e623cea25fe241af URL: https://github.com/kamailio/kamailio/commit/288d009b1dcda37b6b116578e623cea25fe241af
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-27T13:29:45+01:00 ptimer: free in case of error --- Modified: src/modules/ptimer/ptimer.c --- Diff: https://github.com/kamailio/kamailio/commit/288d009b1dcda37b6b116578e623cea25fe241af.diff Patch: https://github.com/kamailio/kamailio/commit/288d009b1dcda37b6b116578e623cea25fe241af.patch --- diff --git a/src/modules/ptimer/ptimer.c b/src/modules/ptimer/ptimer.c index c3b8e1d6659..6ae1cfe7de8 100644 --- a/src/modules/ptimer/ptimer.c +++ b/src/modules/ptimer/ptimer.c @@ -1014,7 +1014,7 @@ static inline int parse_route_param( param_hooks_t phooks; param_t *pit = NULL; pt_route_t tmp; - pt_route_t *rt; + pt_route_t *rt = NULL; pt_timer_t *nt; str s1; str s2 = STR_NULL; @@ -1078,6 +1078,7 @@ static inline int parse_route_param( break; default: LM_CRIT("parsing route param type=%d is undefined\n", which); + pkg_free(rt); goto err3; } _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
