diff --git a/src/r_textures.c b/src/r_textures.c
index 793e5237f62e64e937c32f97d4d01bbb08a6c065..86e8ae43c52599c1ed678e2fb04b2816faf9b150 100644
--- a/src/r_textures.c
+++ b/src/r_textures.c
@@ -814,7 +814,7 @@ Rloadflats (INT32 i, INT32 w)
 			patch->lump = texstart + j;
 			patch->flip = 0;
 
-			Z_Unlock(flatlump);
+			Z_Free(flatlump);
 
 			texturewidth[i] = texture->width;
 			textureheight[i] = texture->height << FRACBITS;
@@ -915,7 +915,7 @@ Rloadtextures (INT32 i, INT32 w)
 			patch->lump = texstart + j;
 			patch->flip = 0;
 
-			Z_Unlock(patchlump);
+			Z_Free(patchlump);
 
 			texturewidth[i] = texture->width;
 			textureheight[i] = texture->height << FRACBITS;