Files
clamav/clamd
Török Edvin 6e65b70e29 Must free engine on exit, otherwise valgrind incorrectly reports leaks.
This is a cherry-pick of a similar commit on the bytecode branch.
There this was needed because the JIT stores pointers mangled (stores an integer in low
bits of the pointer), thus valgrind can't see that pointers to that memory
region still exist, and reports it as definetely lost, instead of still
reachable.
However this seems to happen on master too (where there is no JIT), valgrind
cannot see that everything allocating in engine is reachable from the engine
pointer, and reports some of the memory allocated for the engine (the regex
parts) as possible lost, and reports the rest as still reachable. This seems to
only happen with certain kernel versions, timings, etc.

The fix is to always free the engine, even if this is the parent after the fork.
2009-10-15 11:25:41 +03:00
..
2009-06-29 11:27:46 +02:00
2009-10-07 21:59:54 +02:00
2009-02-13 10:55:45 +00:00
2008-10-13 11:17:35 +00:00
2009-02-13 10:55:45 +00:00
2009-02-13 10:55:45 +00:00
2009-02-13 10:55:45 +00:00
2009-02-13 10:55:45 +00:00
2009-02-13 10:55:45 +00:00
2009-09-24 16:08:52 +02:00