mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
oleaut32: Fix potential double free (Clang).
This commit is contained in:
parent
519a884f6d
commit
68347988e1
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue