From c6d1f2f08c68efe7e80887219064a8ce6365128f Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 21 Apr 2016 12:59:59 +0200 Subject: common: Add 'free_strlist_wipe' which wipes memory. * common/strlist.c (free_strlist_wipe): New function. * common/strlist.h (free_strlist_wipe): New prototype. Signed-off-by: Justus Winter --- common/strlist.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/strlist.h') diff --git a/common/strlist.h b/common/strlist.h index 94dd32f05..45f5543a3 100644 --- a/common/strlist.h +++ b/common/strlist.h @@ -40,6 +40,8 @@ struct string_list typedef struct string_list *strlist_t; void free_strlist (strlist_t sl); +void free_strlist_wipe (strlist_t sl); + strlist_t add_to_strlist (strlist_t *list, const char *string); strlist_t add_to_strlist_try (strlist_t *list, const char *string); -- cgit v1.2.3