]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Mark pointer NULL when it's free
authorAlan T. DeKok <aland@freeradius.org>
Fri, 4 Mar 2011 14:07:56 +0000 (15:07 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 4 Mar 2011 14:07:56 +0000 (15:07 +0100)
src/lib/dict.c

index f349beb5d5c119f9635ffde29a0d6b427fd0409f..c675ed6202bb82cb5e4de75da2dd6abbdc21e985 100644 (file)
@@ -340,8 +340,10 @@ static void fr_pool_delete(fr_pool_t **pfp)
 
        for (fp = *pfp; fp != NULL; fp = next) {
                next = fp->page_next;
+               fp->page_next = NULL;
                free(fp);
        }
+       *pfp = NULL;
 }