diff --git a/cv6/a_station.c b/cv6/a_station.c index 8f659d6..beed172 100644 --- a/cv6/a_station.c +++ b/cv6/a_station.c @@ -10,6 +10,10 @@ struct station* create_station(){ } void destroy_station(struct station* station){ + free(station->tracks); + free(station->track_count); + station->tracks = NULL; + station->track_count = NULL; } int select_track(struct station* station, const char* target){