Skip to content

Commit

Permalink
Fix memory leak in GeoIPLookupCity()
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcook committed Jul 4, 2018
1 parent 701d2d9 commit 43b07da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/wforce-geoip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ WFGeoIPRecord WFGeoIPDB::lookupCity(const ComboAddress& address) const
ret_wfgir.continent_code = gir->continent_code;
ret_wfgir.latitude = gir->latitude;
ret_wfgir.longitude = gir->longitude;
GeoIPRecord_delete(gir);
}
return ret_wfgir;
}
Expand Down

0 comments on commit 43b07da

Please sign in to comment.