From dfacef3019e560159601c80745f2b88919f65d27 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 11 Nov 2013 20:55:09 +0100 Subject: fixed few errors reported by cppcheck (thanks to Pavel Roschin) --- plugins/ao/plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/ao') diff --git a/plugins/ao/plugin.c b/plugins/ao/plugin.c index d997c759..7964c311 100644 --- a/plugins/ao/plugin.c +++ b/plugins/ao/plugin.c @@ -228,6 +228,7 @@ aoplug_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { if (deadbeef->fread(buffer, 1, size, fp) != size) { deadbeef->fclose (fp); + free (buffer); fprintf(stderr, "psf: file read error: %s\n", fname); return NULL; } -- cgit v1.2.3