commit | 327abd3551bdbca808b7fc22019c51210358b645 | [log] [tgz] |
---|---|---|
author | Even Rouault <even.rouault@spatialys.com> | Wed Aug 18 18:15:45 2021 +0200 |
committer | Even Rouault <even.rouault@spatialys.com> | Wed Aug 18 18:19:45 2021 +0200 |
tree | 0e9dd0cc9cb08822e69f8241b53de00af6a22107 | |
parent | 4bac3c53e44506591c2892cc19f0452be169b401 [diff] |
CurlURLInputStream constructor: avoid memory leak CurlURLInputStream constructor calls the readMore() method, which can throw exceptions. In that situation, the destructor is not called, which results in resource/memory leaks. To fix that, catch the exceptions, manually do the cleanup and rethrow the exceptions. Found by ossfuzz (locally)