diff options
| author | tedu <> | 2014-05-30 02:52:11 +0000 |
|---|---|---|
| committer | tedu <> | 2014-05-30 02:52:11 +0000 |
| commit | c442171f7692d3610a7aa5a08593cabf7253c5af (patch) | |
| tree | a802460259115af2ecf6be49736b1b6a09173232 /src/lib/libcrypto/asn1/bio_ndef.c | |
| parent | 60f672682a47559e679725da4d8dc8efa1ddceff (diff) | |
| download | openbsd-c442171f7692d3610a7aa5a08593cabf7253c5af.tar.gz openbsd-c442171f7692d3610a7aa5a08593cabf7253c5af.tar.bz2 openbsd-c442171f7692d3610a7aa5a08593cabf7253c5af.zip | |
no need for null check before free. from Brendan MacDonell
Diffstat (limited to 'src/lib/libcrypto/asn1/bio_ndef.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/bio_ndef.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/bio_ndef.c b/src/lib/libcrypto/asn1/bio_ndef.c index 66be025127..f7fa2e69bc 100644 --- a/src/lib/libcrypto/asn1/bio_ndef.c +++ b/src/lib/libcrypto/asn1/bio_ndef.c | |||
| @@ -186,8 +186,7 @@ ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg) | |||
| 186 | 186 | ||
| 187 | ndef_aux = *(NDEF_SUPPORT **)parg; | 187 | ndef_aux = *(NDEF_SUPPORT **)parg; |
| 188 | 188 | ||
| 189 | if (ndef_aux->derbuf) | 189 | free(ndef_aux->derbuf); |
| 190 | free(ndef_aux->derbuf); | ||
| 191 | 190 | ||
| 192 | ndef_aux->derbuf = NULL; | 191 | ndef_aux->derbuf = NULL; |
| 193 | *pbuf = NULL; | 192 | *pbuf = NULL; |
