Do I need to manually manage memory of a struct pointer?

I refactored my code removing dynamically allocated struct pointers. The problem I’m having is I did not pass by reference when passing it as a parameter. so the actual value is not really modified that is why it appears to be null. I kinda feel stupid now. lol. anyways, Thanks for the help. :slight_smile: