src/stringlist.c
branchENGINE-174
changeset 1615 858298055d48
parent 1559 c6506bc6a0df
child 1694 032e59ccdd93
     1.1 --- a/src/stringlist.c	Tue Feb 28 10:08:59 2017 +0100
     1.2 +++ b/src/stringlist.c	Thu Mar 02 17:54:02 2017 +0100
     1.3 @@ -163,13 +163,13 @@
     1.4  
     1.5  DYNAMIC_API void free_stringlist(stringlist_t *stringlist)
     1.6  {
     1.7 -    stringlist_t *curr = stringlist;;
     1.8 +    stringlist_t *curr = stringlist;
     1.9      
    1.10      while (curr) {
    1.11          stringlist_t *next = curr->next;
    1.12          free(curr->value);
    1.13 +        curr->value = NULL;
    1.14          free(curr);
    1.15          curr = next;
    1.16      }
    1.17  }
    1.18 -