unit1620: fix bad free in OOM

Closes #4709
This commit is contained in:
Daniel Stenberg 2019-12-12 23:49:00 +01:00
parent 5ada900458
commit d00aa703f4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 2 additions and 0 deletions

View File

@ -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);