- 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:
nelsonb%netscape.com 2003-12-04 00:39:24 +00:00
Родитель 288de30d7f
Коммит 87fc420381
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -34,7 +34,7 @@
/*
* 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"
@ -76,6 +76,11 @@ NSS_CMSContentInfo_Destroy(NSSCMSContentInfo *cinfo)
/* XXX Anything else that needs to be "manually" freed/destroyed? */
break;
}
if (cinfo->digcx) {
/* must destroy digest objects */
NSS_CMSDigestContext_Cancel(cinfo->digcx);
cinfo->digcx = NULL;
}
if (cinfo->bulkkey)
PK11_FreeSymKey(cinfo->bulkkey);