Geliang Tang wrote:
> From: Geliang Tang <[email protected]>
> 
> The strdup() function returns a pointer to a new string which is a
> duplicate of the string "ptr". Memory for the new string is obtained
> with malloc(), and need to be freed with free().
> 
> This patch adds these missing "free(ptr)" in check_whitelist() and
> check_blacklist() to avoid memory leaks in test_sockmap.c.
> 
> Signed-off-by: Geliang Tang <[email protected]>
> ---

Acked-by: John Fastabend <[email protected]>

Reply via email to