[Bug 36662] valgrind shows a few memory leaks in ws2_32/tests/sock.c

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Feb 7 18:43:58 CST 2017


https://bugs.winehq.org/show_bug.cgi?id=36662

Austin English <austinenglish at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Austin English <austinenglish at gmail.com> ---
(In reply to Nikolay Sivov from comment #7)
> Could you retest if it still crashes?

With valgrind-3.13.0.SVN-16204-vex-3299 and wine-2.1, I get:
==15711== Invalid free() / delete / delete[] / realloc()
==15711==    at 0x7BC5084A: notify_realloc (heap.c:270)
==15711==    by 0x7BC551A0: RtlReAllocateHeap (heap.c:1860)
==15711==    by 0x4D24CDD: WS_get_local_ips (socket.c:6306)
==15711==    by 0x4D24FFC: WS_gethostbyname (socket.c:6389)
==15711==    by 0x4BC8192: test_getsockname (sock.c:4455)
==15711==    by 0x4BE6468: func_sock (sock.c:10120)
==15711==    by 0x4BE72C1: run_test (test.h:589)
==15711==    by 0x4BE76ED: main (test.h:671)
==15711==  Address 0x6082a98 is 0 bytes after a recently re-allocated block of
size 0 alloc'd
==15711==    at 0x7BC50754: notify_alloc (heap.c:254)
==15711==    by 0x7BC54BD5: RtlAllocateHeap (heap.c:1716)
==15711==    by 0x4D24B3E: WS_get_local_ips (socket.c:6272)
==15711==    by 0x4D24FFC: WS_gethostbyname (socket.c:6389)
==15711==    by 0x4BC8192: test_getsockname (sock.c:4455)
==15711==    by 0x4BE6468: func_sock (sock.c:10120)
==15711==    by 0x4BE72C1: run_test (test.h:589)
==15711==    by 0x4BE76ED: main (test.h:671)
==15711== 

==15711== Invalid free() / delete / delete[] / realloc()
==15711==    at 0x7BC5084A: notify_realloc (heap.c:270)
==15711==    by 0x7BC552CE: RtlReAllocateHeap (heap.c:1896)
==15711==    by 0x4D24CDD: WS_get_local_ips (socket.c:6306)
==15711==    by 0x4D24FFC: WS_gethostbyname (socket.c:6389)
==15711==    by 0x4BC873B: test_gethostbyname (sock.c:4558)
==15711==    by 0x4BE6481: func_sock (sock.c:10125)
==15711==    by 0x4BE72C1: run_test (test.h:589)
==15711==    by 0x4BE76ED: main (test.h:671)
==15711==  Address 0x48d62f8 is 0 bytes after a recently re-allocated block of
size 0 alloc'd
==15711==    at 0x7BC50754: notify_alloc (heap.c:254)
==15711==    by 0x7BC54BD5: RtlAllocateHeap (heap.c:1716)
==15711==    by 0x4D24B3E: WS_get_local_ips (socket.c:6272)
==15711==    by 0x4D24FFC: WS_gethostbyname (socket.c:6389)
==15711==    by 0x4BC873B: test_gethostbyname (sock.c:4558)
==15711==    by 0x4BE6481: func_sock (sock.c:10125)
==15711==    by 0x4BE72C1: run_test (test.h:589)
==15711==    by 0x4BE76ED: main (test.h:671)
==15711== 

but no crash. And the original leaks aren't present, marking fixed.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list