diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-12-12 23:49:00 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-12-12 23:49:00 +0100 |
commit | f52dbcbc41118a0d145a56a37559194c82465bc9 (patch) | |
tree | 96c2e7b36a92b39fd054c68b06b53219aef52882 /tests | |
parent | f3a208d2c79b76018a80953a993ac0f9f447eda0 (diff) | |
download | curl-bagder/libtest-memleak.tar.gz |
uni1620: fix bad free in OOMbagder/libtest-memleak
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); |