From 77a5d1d3ed8bd4889b4c9d2b8f7d24a6a9e8d056 Mon Sep 17 00:00:00 2001 From: tporadowski Date: Sun, 6 Dec 2020 23:22:18 +0100 Subject: [PATCH] [6.0] src/adlist.c --- src/adlist.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/adlist.c b/src/adlist.c index 04ad3421..6badcbff 100644 --- a/src/adlist.c +++ b/src/adlist.c @@ -37,8 +37,9 @@ #include "zmalloc.h" /* Create a new list. The created list can be freed with - * AlFreeList(), but private value of every node need to be freed - * by the user before to call AlFreeList(). + * listRelease(), but private value of every node need to be freed + * by the user before to call listRelease(), or by setting a free method using + * listSetFreeMethod. * * On error, NULL is returned. Otherwise the pointer to the new list. */ list *listCreate(void) @@ -220,8 +221,8 @@ void listRewindTail(list *list, listIter *li) { * listDelNode(), but not to remove other elements. * * The function returns a pointer to the next element of the list, - * or NULL if there are no more elements, so the classical usage patter - * is: + * or NULL if there are no more elements, so the classical usage + * pattern is: * * iter = listGetIterator(list,); * while ((node = listNext(iter)) != NULL) {