Minor Changes

As per comments in 7f525804f963a76d835327bf1f3d58a222dd3fc1
Modified HPM_file2ptr to use realloc as Haruna proposed
Added comment as Gepard proposed
Removed memset in socket.c, as Gepard points out its unnecessary.

Signed-off-by: shennetsind <ind@henn.et>