Commits

Paul Barbu - Gheorghe committed fe34cf4

releasing the memory for song upon failure

Comments (0)

Files changed (1)

 
     if(song == NULL){
         fprintf(stderr, "Error fetching current song!\n");
+        mpd_song_free(song);
         mpd_status_free(status);
         mpd_connection_free(conn);