summary refs log tree commit diff stats
path: root/plugins/mpcinfo/mp3Info.c
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-10-10 00:05:22 -0400
committerTingPing <tingping@tingping.se>2013-10-10 00:05:22 -0400
commitc226f4089ae99283dab4f681710ce798c3908969 (patch)
tree8f1b9b8373ca4b1bb09c39194279d524b2c93fda /plugins/mpcinfo/mp3Info.c
parente244001cee150d574e668aaf478626a036d31cc9 (diff)
Fix a few cppcheck warnings.
Use the proper data type in format functions and fix a resource leak.
Diffstat (limited to 'plugins/mpcinfo/mp3Info.c')
-rw-r--r--plugins/mpcinfo/mp3Info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mpcinfo/mp3Info.c b/plugins/mpcinfo/mp3Info.c
index b7112a5d..99718624 100644
--- a/plugins/mpcinfo/mp3Info.c
+++ b/plugins/mpcinfo/mp3Info.c
@@ -244,6 +244,7 @@ struct tagInfo readID3V2(char *file){
 	for (i=0;i<10;i++){
         c=fgetc(f);
         if (c==EOF){
+            fclose(f);
            //putlog("found eof while reading id3v2");
            return ret;
         }