Fix the clearly accidental duplication of lumpinfo's memory allocation in ResGetLumpsStandalone

This commit is contained in:
Monster Iestyn 2019-06-20 13:24:54 +01:00
parent 96b12f098b
commit bc2804d383

View file

@ -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);