diff options
author | Elliott Hughes <enh@google.com> | 2019-11-05 12:42:14 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2019-11-05 12:42:14 -0800 |
commit | 4aef93acff8932e9fc9a84bc1ccce8903806b193 (patch) | |
tree | 2650d2106682389f1b5df22a0b6d0f18f80a37e8 /libc/malloc_debug/malloc_debug.cpp | |
parent | 590bdbe6e938e1bc53b09674b7eedde440863f11 (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
Change-Id: I1bf137f7933201eb8024603bfd569ff7bbc7f9b7
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions