Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Jun 19, 2024
1 parent 5bb3392 commit be69d1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c/snake.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,6 @@ int main(int argc, char *argv[]) {
handle_end(client_socket);
}
close(client_socket);
free(buffer);
}
}

0 comments on commit be69d1d

Please sign in to comment.