1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 14:35:03 -05:00

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

View File

@ -46,6 +46,8 @@ UNITTEST_START
bool protocol_connect = FALSE; bool protocol_connect = FALSE;
rc = Curl_open(&empty); rc = Curl_open(&empty);
if(rc)
goto unit_test_abort;
fail_unless(rc == CURLE_OK, "Curl_open() failed"); fail_unless(rc == CURLE_OK, "Curl_open() failed");
rc = Curl_connect(empty, &async, &protocol_connect); rc = Curl_connect(empty, &async, &protocol_connect);