Skip to content

Commit

Permalink
unit1620: fix bad free in OOM
Browse files Browse the repository at this point in the history
Closes #4709
  • Loading branch information
bagder committed Dec 13, 2019
1 parent 5ada900 commit d00aa70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/unit1620.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ UNITTEST_START
bool protocol_connect = FALSE;

rc = Curl_open(&empty);
if(rc)
goto unit_test_abort;
fail_unless(rc == CURLE_OK, "Curl_open() failed");

rc = Curl_connect(empty, &async, &protocol_connect);
Expand Down

0 comments on commit d00aa70

Please sign in to comment.