Fixed missing free for subbuffers of packet.
Fixed memory cleanup issue
Fixed alt_names free, now using cleanup function to wrap details.
Simplified code for FindFirstFileA, now always using FindClose
for cleanup.