From 79fea3d08b05f6fe90441c38441279629fc50df8 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Tue, 29 Jul 2008 23:10:15 +0200 Subject: [PATCH] Fix memory leak, ->performer is missing --- config.h.in | 4 ---- src/libmpdclient.c | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/config.h.in b/config.h.in index 6c54f2a..2483fa9 100644 --- a/config.h.in +++ b/config.h.in @@ -33,10 +33,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LT_OBJDIR - /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT diff --git a/src/libmpdclient.c b/src/libmpdclient.c index 2a5d970..a3ed825 100644 --- a/src/libmpdclient.c +++ b/src/libmpdclient.c @@ -950,6 +950,7 @@ static void mpd_finishSong(mpd_Song * song) { if(song->composer) free(song->composer); if(song->disc) free(song->disc); if(song->comment) free(song->comment); + if(song->performer) free(song->performer); } mpd_Song * mpd_newSong(void) { -- 2.11.4.GIT