cURL / Mailing Lists / curl-library / Single Mail

curl-library

[ curl-Bugs-1048286 ] Memory leak in cookie.c

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sat, 16 Oct 2004 05:09:47 -0700

Bugs item #1048286, was opened at 2004-10-16 05:09
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1048286&group_id=976

Category: libcurl
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Memory leak in cookie.c

Initial Comment:
Email: runekl_at_opoint.com

I believe that the maxage variable is not freed when a
Cookie is destroyed.

*** cookie.c~ 2004-08-04 14:26:27.000000000 +0200
--- cookie.c 2004-10-16 14:05:02.304049880 +0200
***************
*** 112,115 ****
--- 112,117 ----
    if(co->value)
      free(co->value);
+ if(co->maxage)
+ free(co->maxage);

    free(co);

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1048286&group_id=976
Received on 2004-10-16