Module: kamailio Branch: master Commit: 414bceec25ba7cbfdd5ef607f772e7d2a8335d34 URL: https://github.com/kamailio/kamailio/commit/414bceec25ba7cbfdd5ef607f772e7d2a8335d34
Author: Yasin CANER <[email protected]> Committer: GitHub <[email protected]> Date: 2019-01-30T07:24:05+03:00 ims_isc : fixed memory leak fixed memory leak for third_part_registration body value. --- Modified: src/modules/ims_isc/third_party_reg.c --- Diff: https://github.com/kamailio/kamailio/commit/414bceec25ba7cbfdd5ef607f772e7d2a8335d34.diff Patch: https://github.com/kamailio/kamailio/commit/414bceec25ba7cbfdd5ef607f772e7d2a8335d34.patch --- diff --git a/src/modules/ims_isc/third_party_reg.c b/src/modules/ims_isc/third_party_reg.c index b54d4e07d4..62cac53f54 100644 --- a/src/modules/ims_isc/third_party_reg.c +++ b/src/modules/ims_isc/third_party_reg.c @@ -403,9 +403,9 @@ int r_send_third_party_reg(r_third_party_registration *r, int expires) { } if (r->cv.len) { - STR_APPEND(h, p_charging_vector_s); - STR_APPEND(h, r->cv); - STR_APPEND(h, p_charging_vector_e); + STR_APPEND(h, p_charging_vector_s); + STR_APPEND(h, r->cv); + STR_APPEND(h, p_charging_vector_e); } if (p_associated_uri.data_len > 0) { @@ -436,11 +436,15 @@ int r_send_third_party_reg(r_third_party_registration *r, int expires) { } if (h.s) pkg_free(h.s); + if (b.s) + pkg_free(b.s); return 1; error: if (h.s) pkg_free(h.s); + if (b.s) + pkg_free(b.s); return 0; } _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
