Commit d4325e2e authored by Elliott Hughes's avatar Elliott Hughes Committed by Manoj Basapathi
Browse files

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)
parent 70ebd716
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment