diff --git a/src/microsoft/spirv_to_dxil/spirv2dxil.c b/src/microsoft/spirv_to_dxil/spirv2dxil.c index c5be7649b78..a468f308b23 100644 --- a/src/microsoft/spirv_to_dxil/spirv2dxil.c +++ b/src/microsoft/spirv_to_dxil/spirv2dxil.c @@ -92,6 +92,7 @@ compile_shader(const char *filename, gl_shader_stage shader_stage, struct shader if (file_size % WORD_SIZE != 0) { fprintf(stderr, "%s size == %zu is not a multiple of %d\n", filename, file_size, WORD_SIZE); + free(file_contents); return false; }