diff options
author | Elliott Hughes <enh@google.com> | 2019-11-05 12:42:14 -0800 |
---|---|---|
committer | Manoj Basapathi <manojbm@codeaurora.org> | 2019-11-19 11:53:47 +0000 |
commit | d4325e2ebc9e92e9238db0e075dc0b4544e82449 (patch) | |
tree | 4fe3af677640bfe05284db604c0fe6827a36ef86 /libc/malloc_debug/malloc_debug.cpp | |
parent | 70ebd716b3e81d304cda14d2bd77996cc2840962 (diff) |
android_getaddrinfo_proxy: fix memory leak on failure.
The shadowing of `ai` meant that the freeaddrinfo() call outside the
loop would never see anything but NULL.
Bug: https://issuetracker.google.com/143928781
Test: treehugger
CRs-Fixed: 2552409
Change-Id: Ia697fb9a62a581ac21101ff95c9c5ea5574b312d
(cherry picked from commit 4aef93acff8932e9fc9a84bc1ccce8903806b193)
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions