diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-11 20:39:26 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-18 21:25:10 +0800 |
commit | 23ac569165b66403abfe72e89007675ceaa9bde0 (patch) | |
tree | af9f03148079f3ac564bc8f6d7c007c16cf8f444 /source/pdf/pdf-pkcs7.c | |
parent | 6dcf860ef683ab416151913150790e61ff26c1b8 (diff) | |
download | mupdf-23ac569165b66403abfe72e89007675ceaa9bde0.tar.xz |
Avoid checking argument to fz_drop_*()/fz_free().
As fz_drop_*()/fz_free() all must handle NULL.
Diffstat (limited to 'source/pdf/pdf-pkcs7.c')
-rw-r--r-- | source/pdf/pdf-pkcs7.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c index 64938fb3..934202e1 100644 --- a/source/pdf/pdf-pkcs7.c +++ b/source/pdf/pdf-pkcs7.c @@ -357,8 +357,7 @@ struct pdf_signer_s void pdf_drop_designated_name(fz_context *ctx, pdf_designated_name *dn) { - if (dn) - fz_free(ctx, dn); + fz_free(ctx, dn); } static void add_from_bags(X509 **pX509, EVP_PKEY **pPkey, STACK_OF(PKCS12_SAFEBAG) *bags, const char *pw); |