Commit c6822f5a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

T. Bharath found this memory leak. It occurs when we replace an internally

already existing cookie with a new one.
parent 4e276b1b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -374,6 +374,9 @@ Curl_cookie_add(struct CookieInfo *c,
          free(clist->maxage);

        *clist = *co;  /* then store all the new data */

        free(co);   /* free the newly alloced memory */
        co = clist; /* point to the previous struct instead */
      }

    }