Skip to content

Commit

Permalink
fix cmsencrypt.c mem leak
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzhi committed Dec 12, 2023
1 parent 10e0221 commit 651d990
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cmsencrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ int cmsencrypt_main(int argc, char **argv)
if (infile && infp) fclose(infp);
if (outfile && outfp) fclose(outfp);
if (rcpt_certs) free(rcpt_certs);
if (inbuf) free(inbuf);
if (cms) free(cms);
return ret;
}

0 comments on commit 651d990

Please sign in to comment.