ec13594835f0aa930f7849edb115ec12d490f9a0
diff --git a/libsoup/soup-cookie.c b/libsoup/soup-cookie.c
index dfb7c42..bba46b0 100644
--- a/libsoup/soup-cookie.c
+++ b/libsoup/soup-cookie.c
@@ -617,7 +617,7 @@ soup_cookie_to_set_cookie_header (SoupCookie *cookie)
 	GString *header = g_string_new (NULL);
 
 	serialize_cookie (cookie, header, TRUE);
-	return g_string_free (header, TRUE);
+	return g_string_free (header, FALSE);
 }
 
 /**
@@ -635,7 +635,7 @@ soup_cookie_to_cookie_header (SoupCookie *cookie)
 	GString *header = g_string_new (NULL);
 
 	serialize_cookie (cookie, header, FALSE);
-	return g_string_free (header, TRUE);
+	return g_string_free (header, FALSE);
 }
 
 /**
