зеркало из https://github.com/mozilla/pjs.git
NSS_CMSContentInfo_Destroy()
- The patch destroys the digest context member of the CMSContentInfo. It calls the previously unused function NSS_CMSDigestContext_Cancel to destroy the digest context. Eliminates an object reference leak. Bugscape bug 54208, r=relyea
This commit is contained in:
Родитель
288de30d7f
Коммит
87fc420381
|
@ -34,7 +34,7 @@
|
||||||
/*
|
/*
|
||||||
* CMS contentInfo methods.
|
* CMS contentInfo methods.
|
||||||
*
|
*
|
||||||
* $Id: cmscinfo.c,v 1.4 2003-11-18 06:16:25 nelsonb%netscape.com Exp $
|
* $Id: cmscinfo.c,v 1.5 2003-12-04 00:39:24 nelsonb%netscape.com Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cmslocal.h"
|
#include "cmslocal.h"
|
||||||
|
@ -76,6 +76,11 @@ NSS_CMSContentInfo_Destroy(NSSCMSContentInfo *cinfo)
|
||||||
/* XXX Anything else that needs to be "manually" freed/destroyed? */
|
/* XXX Anything else that needs to be "manually" freed/destroyed? */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (cinfo->digcx) {
|
||||||
|
/* must destroy digest objects */
|
||||||
|
NSS_CMSDigestContext_Cancel(cinfo->digcx);
|
||||||
|
cinfo->digcx = NULL;
|
||||||
|
}
|
||||||
if (cinfo->bulkkey)
|
if (cinfo->bulkkey)
|
||||||
PK11_FreeSymKey(cinfo->bulkkey);
|
PK11_FreeSymKey(cinfo->bulkkey);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче