diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-12-12 23:49:00 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-12-13 08:16:35 +0100 |
commit | d00aa703f4c83b4f626b760c53994053c970f802 (patch) | |
tree | 96c2e7b36a92b39fd054c68b06b53219aef52882 /tests | |
parent | 5ada9004583f9839448c697acf386ebbcbeb4bce (diff) |
unit1620: fix bad free in OOM
Closes #4709
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/unit1620.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/unit1620.c b/tests/unit/unit1620.c index c6aa721cf..6e572c648 100644 --- a/tests/unit/unit1620.c +++ b/tests/unit/unit1620.c @@ -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); |