add missing fclose() in cdiff_cmd_close()

git-svn: trunk@2116
remotes/push_mirror/metadata
Tomasz Kojm 19 years ago
parent 842c7d4988
commit 10054eea91
  1. 4
      clamav-devel/ChangeLog
  2. 9
      clamav-devel/shared/cdiff.c

@ -1,3 +1,7 @@
Mon Jul 24 21:05:20 CEST 2006 (tk)
----------------------------------
* shared/cdiff.c: add missing fclose() in cdiff_cmd_close()
Mon Jul 24 13:13:35 BST 2006 (njh)
----------------------------------
* libclamav/mbox.c: Some HTML.Phishing.Bank-598 were not being caught,

@ -151,7 +151,6 @@ static char *cdiff_token(const char *line, unsigned int token)
static int cdiff_cmd_open(const char *cmdstr, struct cdiff_ctx *ctx)
{
char *db;
struct stat sb;
unsigned int i;
@ -174,12 +173,6 @@ static int cdiff_cmd_open(const char *cmdstr, struct cdiff_ctx *ctx)
}
}
if(stat(db, &sb) == -1) {
logg("!cdiff_cmd_open: Can't stat database file %s\n", db);
free(db);
return -1;
}
ctx->open_db = db;
return 0;
}
@ -463,6 +456,8 @@ static int cdiff_cmd_close(const char *cmdstr, struct cdiff_ctx *ctx)
}
add = add->next;
}
fclose(fh);
}
cdiff_ctx_free(ctx);

Loading…
Cancel
Save