shithub: mp3dec

Download patch

ref: 572cfae09f821991e444b67d934107e0fa320e0d
parent: e296b039662d9c7ef9bd5f11a657ef941c0f85b1
author: lieff <lieff@users.noreply.github.com>
date: Wed Jul 11 13:54:13 EDT 2018

remove useless NULL check.

--- a/minimp3_test.c
+++ b/minimp3_test.c
@@ -210,8 +210,7 @@
         return 1;
     }
     decode_file(buf_mp3, mp3_size, buf_ref, ref_size, file_out, wave_out);
-    if (buf_mp3)
-        free(buf_mp3);
+    free(buf_mp3);
 #ifdef __AFL_HAVE_MANUAL_CONTROL
     }
 #endif