rpcrt4: Fixed memory leak on error exit (Coverity).
This commit is contained in:
parent
4cb91a69b0
commit
906c341781
|
@ -942,6 +942,7 @@ static size_t rpcrt4_ip_tcp_get_top_of_tower(unsigned char *tower_data,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ERR("unexpected protocol family %d\n", ai->ai_family);
|
ERR("unexpected protocol family %d\n", ai->ai_family);
|
||||||
|
freeaddrinfo(ai);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue