mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:17:14 +00:00
dnsapi: Fix memory leak on error path in do_query_netbios (scan-build).
This commit is contained in:
parent
025e9a0183
commit
2cabb3f79d
|
@ -77,6 +77,7 @@ static DNS_STATUS do_query_netbios( PCSTR name, DNS_RECORDA **recp )
|
||||||
if (!record->pName)
|
if (!record->pName)
|
||||||
{
|
{
|
||||||
status = ERROR_NOT_ENOUGH_MEMORY;
|
status = ERROR_NOT_ENOUGH_MEMORY;
|
||||||
|
free( record );
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue