freeing pointers in cDNSStream
initial code of cHTTPStream