[PATCH] examples/flow_filtering: fix null derefs and memory leaks

Thomas Monjalon thomas at monjalon.net
Sat Jul 11 00:22:53 CEST 2026


31/03/2026 14:53, Shani Peretz:
> Add missing return statements after failed calloc NULL checks to
> prevent null pointer dereferences.
> 
> Free previously allocated memory on error paths to prevent
> leaked storage when a subsequent allocation fails.
> 
> Fixes: 3ebb8789136a ("examples/flow_filtering: add more snippets")
> 
> Signed-off-by: Shani Peretz <shperetz at nvidia.com>

Applied, thanks.





More information about the dev mailing list