fix "leak". It was a valgrind false-positive because it couldn't see the

pointer.

git-svn: trunk@4402
0.95
Török Edvin 17 years ago
parent b1deacbc62
commit dd15bc42f5
  1. 5
      ChangeLog
  2. 4
      clamd/clamd.c

@ -1,3 +1,8 @@
Thu Nov 13 17:12:40 EET 2008 (edwin)
------------------------------------
* clamd/clamd.c: fix leak. It was a valgrind false-positive because
it couldn't see the pointer.
Thu Nov 13 16:59:47 EET 2008 (edwin)
------------------------------------
* unit_tests/Makefile.am, unit_tests/Makefile.in: fix paths

@ -89,6 +89,9 @@ static void help(void)
}
static struct cfgstruct *copt;
/* needs to be global, so that valgrind reports it as reachable, and not
* as definetely/indirectly lost when daemonizing clamd */
static struct cl_engine *engine;
int main(int argc, char **argv)
{
const struct cfgstruct *cpt;
@ -96,7 +99,6 @@ int main(int argc, char **argv)
struct passwd *user = NULL;
#endif
time_t currtime;
struct cl_engine *engine;
const char *dbdir, *cfgfile;
char *pua_cats = NULL;
int ret, tcpsock = 0, localsock = 0, i;

Loading…
Cancel
Save