Module: kamailio
Branch: master
Commit: 70e177fe1ba1792e8842efa9d5746bda75380b65
URL:
https://github.com/kamailio/kamailio/commit/70e177fe1ba1792e8842efa9d5746bd…
Author: Seudin Kasumovic <seudin.kasumovic(a)gmail.com>
Committer: Seudin Kasumovic <seudin.kasumovic(a)gmail.com>
Date: 2015-05-24T20:02:07+02:00
erlang: Fix memory leak
Free memory used for format/print Erlang process id PV.
---
Modified: modules/erlang/mod_erlang.c
---
Diff:
https://github.com/kamailio/kamailio/commit/70e177fe1ba1792e8842efa9d5746bd…
Patch:
https://github.com/kamailio/kamailio/commit/70e177fe1ba1792e8842efa9d5746bd…
---
diff --git a/modules/erlang/mod_erlang.c b/modules/erlang/mod_erlang.c
index 5fc3615..9f5d768 100644
--- a/modules/erlang/mod_erlang.c
+++ b/modules/erlang/mod_erlang.c
@@ -392,6 +392,7 @@ static void mod_destroy(void)
free_atom_fmt_buff();
free_list_fmt_buff();
free_xbuff_fmt_buff();
+ free_pid_fmt_buff();
}
static int postprocess_request(struct sip_msg *msg, unsigned int flags, void *_param)
@@ -400,6 +401,7 @@ static int postprocess_request(struct sip_msg *msg, unsigned int
flags, void *_p
free_atom_fmt_buff();
free_list_fmt_buff();
free_xbuff_fmt_buff();
+ free_pid_fmt_buff();
return 0;
}