Explorar o código

erlang: Fix memory leak

Free memory used for format/print Erlang process id PV.
Seudin Kasumovic %!s(int64=10) %!d(string=hai) anos
pai
achega
70e177fe1b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      modules/erlang/mod_erlang.c

+ 2 - 0
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;
 }