cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Test Suite using Valgrind

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 2 Feb 2005 20:06:09 +0100 (CET)

On Wed, 2 Feb 2005, David Jensen wrote:

> ==18732== 9 bytes in 1 blocks are definitely lost in loss record 1 of 1
> ==18732== at 0x1B904B8D: malloc (vg_replace_malloc.c:131)
> ==18732== by 0x1BA89C36: _nl_normalize_codeset (l10nflist.c:342)
> ==18732== by 0x1BA84290: _nl_load_locale_from_archive (loadarchive.c:174)
> ==18732== by 0x1BA832E4: _nl_find_locale (findlocale.c:106)
> ==18732== by 0x1BA82C32: setlocale (setlocale.c:312)
> ==18732== by 0x804E817: main (main.c:2961)

This looks like a glibc (or possibly valgrind) problem/memory leak. There's no
corresponding function call to free memory setlocale() might have allocated.

These annoying non-related leaks and problems make me reconsidering weather
using valgrind in the test suite by default is really such a good idea. :-(

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-02-02