dnsapi: Fix memory leak on error path in do_query_netbios (scan-build).
This commit is contained in:
parent
025e9a0183
commit
2cabb3f79d
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ static DNS_STATUS do_query_netbios( PCSTR name, DNS_RECORDA **recp )
|
|||
if (!record->pName)
|
||||
{
|
||||
status = ERROR_NOT_ENOUGH_MEMORY;
|
||||
free( record );
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue