diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-11 20:55:09 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-11 21:30:40 +0100 |
commit | dfacef3019e560159601c80745f2b88919f65d27 (patch) | |
tree | 14fd54c01bf3ba26076c71f3ca09e6f77bbdc5fb /plugins/ao | |
parent | 679daf9907e3ae8bba66fe8a2e5f57a2987130f4 (diff) |
fixed few errors reported by cppcheck (thanks to Pavel Roschin)
Diffstat (limited to 'plugins/ao')
-rw-r--r-- | plugins/ao/plugin.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |