changeset 1603:a31eecbe5938

fix cookie attr leak
author corvid <corvid@lavabit.com>
date Mon, 08 Mar 2010 16:07:57 +0000
parents 3d9a1b463163
children afb42f6a5236
files dpi/cookies.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/cookies.c	Fri Mar 05 00:54:54 2010 +0000
+++ b/dpi/cookies.c	Mon Mar 08 16:07:57 2010 +0000
@@ -710,7 +710,7 @@
             cookie->name = dStrdup("");
             cookie->value = attr;
          } else {
-            cookie->name = dStrdup(attr);
+            cookie->name = attr;
             cookie->value = Cookies_parse_value(&str);
          }
       } else if (dStrcasecmp(attr, "Path") == 0) {