From bc2804d383b95ccfcf400a04683fddd9105e6980 Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Thu, 20 Jun 2019 13:24:54 +0100
Subject: [PATCH] Fix the clearly accidental duplication of lumpinfo's memory
 allocation in ResGetLumpsStandalone

---
 src/w_wad.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/w_wad.c b/src/w_wad.c
index 5bf7a36d34..8641cf1168 100644
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -334,7 +334,6 @@ static restype_t ResourceFileDetect (const char* filename)
 static lumpinfo_t* ResGetLumpsStandalone (FILE* handle, UINT16* numlumps, const char* lumpname)
 {
 	lumpinfo_t* lumpinfo = Z_Calloc(sizeof (*lumpinfo), PU_STATIC, NULL);
-	lumpinfo = Z_Calloc(sizeof (*lumpinfo), PU_STATIC, NULL);
 	lumpinfo->position = 0;
 	fseek(handle, 0, SEEK_END);
 	lumpinfo->size = ftell(handle);
-- 
GitLab