summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e38415)
raw | patch | inline | side by side (parent: 5e38415)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Mon, 18 Jul 2011 10:23:50 +0000 (12:23 +0200) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Mon, 18 Jul 2011 10:23:50 +0000 (12:23 +0200) |
cppcheck detected this little bug.
src/screen_queue.c | patch | blob | history |
diff --git a/src/screen_queue.c b/src/screen_queue.c
index 67df4b53655b7f3603cf174ae48c1a88c724b266..37a60500eea74a6006237af072d93bcfe68a8d76 100644 (file)
--- a/src/screen_queue.c
+++ b/src/screen_queue.c
/* send save command to mpd */
connection = mpdclient_get_connection(c);
- if (connection == NULL)
+ if (connection == NULL) {
+ g_free(filename);
return -1;
+ }
filename_utf8 = locale_to_utf8(filename);
if (!mpd_run_save(connection, filename_utf8)) {