diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index 6d2932be..0b440a06 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -167,6 +167,10 @@ uchar *readmcfggz(char *name, int *size, int *sizegz) } *sizegz = (int) gzbufsize; } + else + { + DELETEA(gzbuf); + } DELETEA(data); return gzbuf; }