diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-09 11:12:34 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-09 11:12:34 +0000 |
commit | 0f8facb49b45a711fa7832c68260a5b45b362922 (patch) | |
tree | 877fa9fabaeb601098cdbb04e48947e34100d8a4 /lib/cookie.c | |
parent | d49d05bce603313d71f1a2b9904c74ca7b368703 (diff) |
added memory debugging include file
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 */ } } |