win32: fix a potential memory leak in Curl_load_library #938

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@avakar
avakar commented Aug 1, 2016

If a call to GetSystemDirectory fails, the path pointer that was
previously allocated would be leaked. This makes sure that path is
always freed.

Martin Vejnár win32: fix a potential memory leak in Curl_load_library
If a call to GetSystemDirectory fails, the `path` pointer that was
previously allocated would be leaked. This makes sure that `path` is
always freed.
4877bbd
@mention-bot

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

@bagder bagder added a commit that closed this pull request Aug 1, 2016
@bagder Martin Vejnár + bagder win32: fix a potential memory leak in Curl_load_library
If a call to GetSystemDirectory fails, the `path` pointer that was
previously allocated would be leaked. This makes sure that `path` is
always freed.

Closes #938
608b11a
@bagder bagder closed this in 608b11a Aug 1, 2016
@bagder
Member
bagder commented Aug 1, 2016

Lovely, thanks!

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