416328c62b4b02f4af2c2d987e6eb3fc99a0e4a8
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
index 08e0133..8ef4d10 100644
--- a/libsoup/soup-cookie-jar.c
+++ b/libsoup/soup-cookie-jar.c
@@ -364,6 +364,8 @@ request_unqueued (SoupSessionFeature *feature, SoupSession *session,
  * @jar: a #SoupCookieJar
  *
  * Constructs a #GSList with every cookie inside the @jar.
+ * The cookies in the list are a copy of the original, so
+ * you have to free them when you are done with them.
  *
  * Return value: a #GSList with all the cookies in the @jar.
  **/
@@ -384,7 +386,7 @@ soup_cookie_jar_all_cookies (SoupCookieJar *jar)
 	while (g_hash_table_iter_next (&iter, &key, &value)) {
 		GSList *p, *cookies = value;
 		for (p = cookies; p; p = p->next)
-			l = g_slist_prepend (l, p->data);
+			l = g_slist_prepend (l, soup_cookie_copy (p->data));
 	}
 
 	return l;
