Memory leak in INET_connect()
-----------------------------

                 Key: CORE-6197
                 URL: http://tracker.firebirdsql.org/browse/CORE-6197
             Project: Firebird Core
          Issue Type: Bug
          Components: API / Client Library
    Affects Versions: 4.0 Beta 1, 3.0.4
            Reporter: Dimitry Sibiryakov
            Priority: Minor


Reported by Paul Reeves. Valgring show that memory allocated by getaddrinfo() 
is not freed:

==00:10:37:54.796 1607== 119 bytes in 1 blocks are definitely lost in loss 
record 38 of 95
==00:10:37:54.796 1607==    at 0x4C2E2DF: malloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==00:10:37:54.796 1607==    by 0x5BBEF70: __libc_alloc_buffer_allocate (in 
/lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x5C518B8: __resolv_conf_allocate (in 
/lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x5C4F44B: __resolv_conf_load (in 
/lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x5C5158A: __resolv_conf_get_current (in 
/lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x5C4FF9C: __res_vinit (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x5C50E80: context_get.part.1 (in 
/lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x5C4211B: gethostbyname2_r@@GLIBC_2.2.5 (in 
/lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x5C19AD4: gaih_inet.constprop.7 (in 
/lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x5C1A6E3: getaddrinfo (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607==    by 0x639DF09: ??? (in 
/opt/firebird/lib/libfbclient.so.3.0.5)
==00:10:37:54.796 1607==    by 0x639EE3B: ??? (in 
/opt/firebird/lib/libfbclient.so.3.0.5)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to