Type: Posts; User: BEN10
Wouldn't the allocated memory be freed automatically when the function returns?