From a8c6a652605b921d2accbf256c2ebbd27c9dd596 Mon Sep 17 00:00:00 2001 From: FlykeSpice Date: Mon, 11 Oct 2021 00:20:11 -0400 Subject: [PATCH] Fix visplanes getting allocated twice I guess that is legacy remnant stuff --- src/r_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_plane.c b/src/r_plane.c index d844048ae..45719ce58 100644 --- a/src/r_plane.c +++ b/src/r_plane.c @@ -318,7 +318,7 @@ static visplane_t *new_visplane(unsigned hash) visplane_t *check = freetail; if (!check) { - check = calloc(2, sizeof (*check)); + check = malloc(sizeof (*check)); if (check == NULL) I_Error("%s: Out of memory", "new_visplane"); // FIXME: ugly } else