From: Pavel Labath Date: Thu, 18 Mar 2010 20:31:18 +0000 (+0100) Subject: Fix a leak in mpd.c (refcount fail) X-Git-Url: http://git.maemo.org/git/?p=monky;a=commitdiff_plain;h=c3f28e192af9ae5776c059f4db95fe1840280007 Fix a leak in mpd.c (refcount fail) --- diff --git a/src/mpd.c b/src/mpd.c index 24770db..a4ca152 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -81,9 +81,7 @@ int mpd_set_port(const char *port) void init_mpd(void) { if (!(refcount++)) /* first client */ - memset(&mpd_info, 0, sizeof(struct mpd_s)); - - refcount++; + memset(&mpd_info, 0, sizeof(mpd_info)); } struct mpd_s *mpd_get_info(void)