net: fix preconnect memory leak

Release memory allocated in network
stack while preconnecting to a new host

Change-Id: I4cdea07022fc064b1147680b7e94b416bba2d5b1