summaryrefslogtreecommitdiff
path: root/plugins/ao
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ao')
-rw-r--r--plugins/ao/plugin.c1
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;
}