summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'junklib.c')
-rw-r--r--junklib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/junklib.c b/junklib.c
index 086cc44e..2ec2feb8 100644
--- a/junklib.c
+++ b/junklib.c
@@ -2999,6 +2999,7 @@ junk_id3v2_read_full (playItem_t *it, DB_id3v2_tag_t *tag_store, DB_FILE *fp) {
uint8_t *tag = malloc (size);
if (!tag) {
fprintf (stderr, "junklib: out of memory while reading id3v2, tried to alloc %d bytes\n", size);
+ goto error;
}
if (deadbeef->fread (tag, 1, size, fp) != size) {
goto error; // bad size