[sr-dev] git:master:70e177fe: erlang: Fix memory leak
Seudin Kasumovic
seudin.kasumovic at gmail.com
Sun May 24 20:03:28 CEST 2015
Module: kamailio
Branch: master
Commit: 70e177fe1ba1792e8842efa9d5746bda75380b65
URL: https://github.com/kamailio/kamailio/commit/70e177fe1ba1792e8842efa9d5746bda75380b65
Author: Seudin Kasumovic <seudin.kasumovic at gmail.com>
Committer: Seudin Kasumovic <seudin.kasumovic at 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/70e177fe1ba1792e8842efa9d5746bda75380b65.diff
Patch: https://github.com/kamailio/kamailio/commit/70e177fe1ba1792e8842efa9d5746bda75380b65.patch
---
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;
}
More information about the sr-dev
mailing list