summaryrefslogtreecommitdiffstats
path: root/src/fidentify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fidentify.c')
-rw-r--r--src/fidentify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fidentify.c b/src/fidentify.c
index 56f642f..3f09d51 100644
--- a/src/fidentify.c
+++ b/src/fidentify.c
@@ -73,7 +73,10 @@ static int file_identify(const char *filename, const unsigned int check)
buffer=buffer_olddata + blocksize;
file=fopen(filename, "rb");
if(file==NULL)
+ {
+ free(buffer_start);
return -1;
+ }
if(fread(buffer, 1, READ_SIZE, file)<=0)
{
fclose(file);