Index: libclamav/readdb.c =================================================================== --- a/libclamav/readdb.c +++ b/libclamav/readdb.c @@ -4163,7 +4163,9 @@ static int cli_loadpwdb(FILE *fs, struct /* use the tdb to track filetypes and check flevels */ memset(&tdb, 0, sizeof(tdb)); +#ifdef USE_MPOOL tdb.mempool = engine->mempool; +#endif ret = init_tdb(&tdb, engine, attribs, passname); free(attribs); if(ret != CL_SUCCESS) {