diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-18 11:14:36 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-18 11:14:36 +0000 |
commit | 4941309c7b1deaa472bf3fad410f90eed48b785a (patch) | |
tree | c4ff3d0c8e74ce3f9ddea2cfd37d06a711091b18 /lib/libcrypto | |
parent | 3d00396b3ffca296fc21c4f02a41b9405bb80638 (diff) |
add braces missed when fixing leaks
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/asn1/tasn_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/tasn_enc.c b/lib/libcrypto/asn1/tasn_enc.c index f7bdd11edfa..c9131cd9ca2 100644 --- a/lib/libcrypto/asn1/tasn_enc.c +++ b/lib/libcrypto/asn1/tasn_enc.c @@ -433,10 +433,11 @@ static int asn1_set_seq_out(STACK_OF(ASN1_VALUE) *sk, unsigned char **out, derlst = malloc(sk_ASN1_VALUE_num(sk) * sizeof(*derlst)); tmpdat = malloc(skcontlen); - if (!derlst || !tmpdat) + if (!derlst || !tmpdat) { free(derlst); free(tmpdat); return 0; + } } } /* If not sorting just output each item */ |