Skip to content

Commit 8c74aed

Browse files
committed
Fix read after free bug
1 parent 5f4d9ea commit 8c74aed

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: src/game_snake.c

-1
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,6 @@ int snake_initialize(GameData *game, bool is_online, bool self_host)
11641164
int err = -4;
11651165

11661166
if (state->snake == NULL) {
1167-
free(state);
11681167
goto on_error;
11691168
}
11701169

0 commit comments

Comments
 (0)