[LTP] [PATCH] futex_waitv01: Correct assign and add cleanup

Cyril Hrubis chrubis@suse.cz
Thu Apr 14 15:42:27 CEST 2022


Hi!
> +static void cleanup(void)
> +{
> +	if (futex != NULL)
> +		free(futex);

free(NULL) is no-op, there is no reason to check for NULL before passing
a pointer to free().

The rest of the changes looks good to me.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list