Re: [PATH nft v2 02/18] erec: add function to free list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 19, 2017 at 05:24:04PM +0200, Eric Leblond wrote:
> Signed-off-by: Eric Leblond <eric@xxxxxxxxx>

Please, add description, even if it's just a oneliner.

[...]
> diff --git a/src/erec.c b/src/erec.c
> index 439add9..f454d34 100644
> --- a/src/erec.c
> +++ b/src/erec.c
> @@ -213,6 +213,16 @@ void erec_print_list(FILE *f, struct list_head *list)
>  	}
>  }
>  
> +void erec_free_list(struct list_head *list)
> +{
> +	struct error_record *erec, *next;
> +
> +	list_for_each_entry_safe(erec, next, list, list) {
> +		list_del(&erec->list);
> +		erec_destroy(erec);
> +	}
> +}

There is no first user of this function in the codebase yet?
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux