summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-22 20:18:22 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-22 20:18:22 +0200
commit6a2fcf23b4adeb2d4524ea027bb1e61611e4a9be (patch)
tree9d8ec6e3b4cd94c89569e80a8b1ae54539253032 /junklib.c
parent21a883ee3ae68f05624922320b2f762ddb9bd7b7 (diff)
minor junklib error check fix
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