diff options
author | waker <wakeroid@gmail.com> | 2011-05-22 20:18:22 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-22 20:18:22 +0200 |
commit | 6a2fcf23b4adeb2d4524ea027bb1e61611e4a9be (patch) | |
tree | 9d8ec6e3b4cd94c89569e80a8b1ae54539253032 | |
parent | 21a883ee3ae68f05624922320b2f762ddb9bd7b7 (diff) |
minor junklib error check fix
-rw-r--r-- | junklib.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |