mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-21 21:03:40 +08:00
fix cmsencrypt.c mem leak
This commit is contained in:
@@ -229,6 +229,7 @@ end:
|
|||||||
if (infile && infp) fclose(infp);
|
if (infile && infp) fclose(infp);
|
||||||
if (outfile && outfp) fclose(outfp);
|
if (outfile && outfp) fclose(outfp);
|
||||||
if (rcpt_certs) free(rcpt_certs);
|
if (rcpt_certs) free(rcpt_certs);
|
||||||
|
if (inbuf) free(inbuf);
|
||||||
if (cms) free(cms);
|
if (cms) free(cms);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user