Skip to content

Commit

Permalink
Free the unfree heap
Browse files Browse the repository at this point in the history
  • Loading branch information
LiYaoYu authored and DhavalKapil committed Apr 22, 2017
1 parent 5b7bdd5 commit 267a9ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ void run_tunnel(char *dest, int server)

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

Expand Down

0 comments on commit 267a9ec

Please sign in to comment.