core/gateway/rpc: Fix leak found by covscan
authorOndrej Holy <oholy@redhat.com>
Fri, 17 Aug 2018 14:00:19 +0000 (16:00 +0200)
committerOndrej Holy <oholy@redhat.com>
Wed, 22 Aug 2018 12:34:02 +0000 (14:34 +0200)
commit83e966d9e257276ecbfc311c0ff06bb5f3820036
tree02b8d5c95de744a77d98d96d8af240f881550b52
parent6de583e13793df5e4481d91237b607daee5048a5
core/gateway/rpc: Fix leak found by covscan

0 is valid return value from socket().

leaked_storage: Variable "auth_3_pdu" going out of scope leaks the storage it points to.
leaked_storage: Variable "response" going out of scope leaks the storage it points to.
leaked_handle: Handle variable "sockfd" going out of scope leaks the handle.
libfreerdp/core/gateway/rpc.c
libfreerdp/core/gateway/rpc_bind.c
libfreerdp/core/gateway/rpc_client.c