Browse Source

erlang: Fix memory leak

Free memory used for format/print Erlang process id PV.
Seudin Kasumovic 10 năm trước cách đây
mục cha
commit
70e177fe1b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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_atom_fmt_buff();
 		free_list_fmt_buff();
 		free_list_fmt_buff();
 		free_xbuff_fmt_buff();
 		free_xbuff_fmt_buff();
+		free_pid_fmt_buff();
 }
 }
 
 
 static int postprocess_request(struct sip_msg *msg, unsigned int flags, void *_param)
 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_atom_fmt_buff();
 	free_list_fmt_buff();
 	free_list_fmt_buff();
 	free_xbuff_fmt_buff();
 	free_xbuff_fmt_buff();
+	free_pid_fmt_buff();
 	return 0;
 	return 0;
 }
 }