]> The Tcpdump Group git mirrors - tcpdump/commit
tcpdump: plug a memory leak.
authorGuy Harris <[email protected]>
Sun, 5 Feb 2023 20:12:22 +0000 (12:12 -0800)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 5 Oct 2023 10:32:17 +0000 (12:32 +0200)
commitba2cc21c990d554fe10464de68424aced8a47977
tree39f30081567becee3057999213bae8ba2361f596
parent999e7723e0ad9014feffe0f1e29c2a205208de7b
tcpdump: plug a memory leak.

If the -V flag is used, and not all files in the -V file have the same
link-layer type, when the filter is recompiled for a new link-layer
type, the old filter program is leaked.  Free the old filter before
compiling the new filter.

(cherry picked from commit 9904bbbd9ed020931d55ce6a4aed8a1dfc3d3841)
tcpdump.c