1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

dnsapi: Fix memory leak on error path in do_query_netbios (scan-build).

This commit is contained in:
Alex Henrie 2023-06-06 23:12:33 -06:00 committed by Alexandre Julliard
parent 025e9a0183
commit 2cabb3f79d

View File

@ -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;
}