소스 검색

erlang: Fix memory leak

Free memory used for format/print Erlang process id PV.
Seudin Kasumovic 10 년 전
부모
커밋
70e177fe1b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;
 }