Am I doing this deallocate memory right? - MPGH