diff options
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index 01c3f2d2f..a39ff88ad 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -65,6 +65,11 @@ Example set of cookies: #include "getdate.h" #include "strequal.h" +/* The last #include file should be: */ +#ifdef MALLOCDEBUG +#include "memdebug.h" +#endif + /**************************************************************************** * * cookie_add() @@ -496,6 +501,7 @@ void cookie_cleanup(struct CookieInfo *c) free(co); co = next; } + free(c); /* free the base struct as well */ } } |