oleaut32: Fix potential double free (Clang).

This commit is contained in:
Alexandre Julliard 2024-09-13 18:21:08 +02:00
parent 519a884f6d
commit 68347988e1

View file

@ -9080,6 +9080,7 @@ static HRESULT WMSFT_compile_strings(ITypeLibImpl *This,
data + sizeof(INT16), file->string_seg.len - last_offs - sizeof(INT16), NULL, NULL);
if (size == 0) {
free(file->string_seg.data);
file->string_seg.data = NULL;
return E_UNEXPECTED;
}