Module: kamailio
Branch: master
Commit: 96aa799065d45a48e00a3efff252aa9bb473e355
URL:
https://github.com/kamailio/kamailio/commit/96aa799065d45a48e00a3efff252aa9…
Author: Tsvetomir Dimitrov <tsv.dimitrov(a)gmail.com>
Committer: Tsvetomir Dimitrov <tsv.dimitrov(a)gmail.com>
Date: 2018-10-31T18:43:34+02:00
ims_ipsec_pcscf: Fix a memory leak in add_security_server_header()
---
Modified: src/modules/ims_ipsec_pcscf/cmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/96aa799065d45a48e00a3efff252aa9…
Patch:
https://github.com/kamailio/kamailio/commit/96aa799065d45a48e00a3efff252aa9…
---
diff --git a/src/modules/ims_ipsec_pcscf/cmd.c b/src/modules/ims_ipsec_pcscf/cmd.c
index 17e6c7b000..a662f0c2e4 100644
--- a/src/modules/ims_ipsec_pcscf/cmd.c
+++ b/src/modules/ims_ipsec_pcscf/cmd.c
@@ -410,6 +410,8 @@ int add_security_server_header(struct sip_msg* m, ipsec_t* s)
return -1;
}
+ pkg_free(sec_header);
+
return 0;
}