Skip to content

Commit 267a9ec

Browse files
LiYaoYuDhavalKapil
authored andcommitted
Free the unfree heap
1 parent 5b7bdd5 commit 267a9ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tunnel.c

+1
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ void run_tunnel(char *dest, int server)
243243

244244
printf("[DEBUG] Src address being copied: %s\n", packet.src_addr);
245245
strncpy(dest, packet.src_addr, strlen(packet.src_addr) + 1);
246+
free(packet.payload);
246247
}
247248
}
248249

0 commit comments

Comments
 (0)