==143547==ERROR: AddressSanitizer: heap-use-after-free on address 0xefd0549c at pc 0x5b96c170 bp 0xe
write_response(void *reponse)
char *p_str = (char *)reponse;
FILE *fd_handle = NULL;
fd_handle = fopen("xxx.txt", "a");
if (fd_handle < 0) {
printf("open failed\n");
} else {
printf("open success\n");
}
fprintf(fd_handle,"%s:","p_str ");//提示heap-use-after-free on address 0xefd0549c at pc 0x5b96c170 bp 0xe
检查发现在使用指针p_str时,已经将传入的reponse进行释放