gssmask: client_connect addrinfo leak
commitd3fc257245e579747b3f634fb9559c792f545979
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 14 Nov 2016 21:56:08 +0000 (14 16:56 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 14 Nov 2016 21:56:08 +0000 (14 16:56 -0500)
tree1df7d497f0d627087b35a1d710f940f6b29c3edc
parent19e8852697275e61e8fce438e4ddeb9bee8d74f2
gssmask: client_connect addrinfo leak

In client_connect() getaddrinfo() stores the head of the allocated
addrinfo structure list in 'res0'.  'res' is used to walk the list
and will be NULL at the end of the for() loop when freeaddrinfo(res)
is executed.  Pass 'res0' to freeaddrinfo() instead of 'res'.

Change-Id: Ie1358c0356b6b0f98470e46e25216cfa0ab4adac
appl/gssmask/gssmaestro.c