Memory leak in case *outlen is zero #970

Merged
merged 1 commit into from Aug 19, 2016

Projects

None yet

3 participants

@mirekfranc
Contributor

This was found during static analysis. In case of memory being allocated by Curl_base64_encode, but output length being zero, the memory pointed to by *outptr is never freed.

@mention-bot

@mirekfranc, thanks for your PR! By analyzing the annotation information on this pull request, we identified @captain-caveman2k, @bagder and @vszakats to be potential reviewers

@mirekfranc mirekfranc fix memory leak in case *outlen is zero
b988fc5
@bagder bagder merged commit 0796a99 into curl:master Aug 19, 2016

0 of 2 checks passed

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
@bagder
Member
bagder commented Aug 19, 2016

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment