Re: Debug-Nondebug more
Date: Tue, 13 Jun 2000 10:10:02 +0200 (MET DST)
On Tue, 13 Jun 2000, Luong Dinh Dung wrote:
> Release mode only means no debug. My test programme tried to download a
> Web page without options. In this test, previously in 6 version i used
> curl_urlget(), but now in 7 version i used others like curl-easy-init(),
Ah, I found it! Thanks for the details, I free()ed the same pointer twice!
This problem is not present in versions before version 7.
> The test has already downloaded the web page and write it into file, but
> error occurs in curl-easy-cleanup like reported before. In ftp download
> test, there is the same error.
Yes, this will happen on any kind of data. Apply the patch below, or edit the
diff -u -r1.20 url.c
--- url.c 2000/06/08 15:11:39 1.20
+++ url.c 2000/06/13 08:07:05
@@ -233,13 +233,11 @@
void *protocol = data->proto.generic;
- /* total session cleanup */
+ /* total session cleanup (frees 'data' as well!)*/
-- Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`olReceived on 2000-06-13