cURL / Mailing Lists / curl-library / Single Mail

curl-library

Repeatable crash

From: Jacky Lam <sylam_at_emsoftltd.com>
Date: Fri, 29 Mar 2002 09:21:58 +0800

Hi,

    Currently, when I visit cnn.com with libcurl, I experience a repeatable
crash.
    It is cause by the memory debug utiltiy in libcurl. A malloc from
lib/transfer.c is replaced by curl_domalloc when memdebug.h is included.
However, the pointer will be get freed in lib/getinfo.c where memdebug.h is
not include even MALLOCDEBUG is defined.

    The fix is just add back the lines after all the includes in getinfo.c

    #ifdef MALLOCDEBUG
    #include "memdebug.h"
    #endif

    Thx.

Jacky
Received on 2002-03-29