mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-03 11:42:47 -05:00
Delete the output file in case of error
This commit is contained in:

committed by
Michał Trojnara

parent
e290e03341
commit
ef5047038e
7
appx.c
7
appx.c
@ -709,6 +709,13 @@ static void appx_ctx_cleanup(FILE_FORMAT_CTX *ctx, BIO *hash, BIO *outdata)
|
||||
if (outdata) {
|
||||
BIO_free_all(hash);
|
||||
BIO_free_all(outdata);
|
||||
if (ctx->options->outfile) {
|
||||
#ifdef WIN32
|
||||
_unlink(ctx->options->outfile);
|
||||
#else
|
||||
unlink(ctx->options->outfile);
|
||||
#endif /* WIN32 */
|
||||
}
|
||||
}
|
||||
freeZip(ctx->appx_ctx->zip);
|
||||
OPENSSL_free(ctx->appx_ctx->calculatedBMHash);
|
||||
|
Reference in New Issue
Block a user