Bugzilla Bug 339907: fixed the leak of sha1cx. The patch is contributed by

Ryan Jones <sciguyryan+bugzilla@gmail.com>. r=nelsonb,wtc.
This commit is contained in:
wtchang%redhat.com 2006-10-23 21:24:38 +00:00
parent f0269acb0a
commit c491737eac

View File

@ -37,7 +37,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* $Id: rsawrapr.c,v 1.10 2006/07/31 18:10:17 wtchang%redhat.com Exp $ */
/* $Id: rsawrapr.c,v 1.11 2006/10/23 21:24:38 wtchang%redhat.com Exp $ */
#include "blapi.h"
#include "softoken.h"
@ -145,6 +145,7 @@ oaep_xor_with_h1(unsigned char *data, unsigned int datalen,
end_octet++;
}
SHA1_DestroyContext (sha1cx, PR_TRUE);
return SECSuccess;
}