Index: nss/lib/pki/tdcache.c |
=================================================================== |
--- nss/lib/pki/tdcache.c (revision 256695) |
+++ nss/lib/pki/tdcache.c (working copy) |
@@ -468,10 +468,10 @@ |
if (count > 0) { |
cached = nss_ZNEWARRAY(NULL, NSSCertificate *, count + 1); |
if (!cached) { |
+ nssList_Destroy(certList); |
return PR_FAILURE; |
} |
nssList_GetArray(certList, (void **)cached, count); |
- nssList_Destroy(certList); |
for (cp = cached; *cp; cp++) { |
nssCryptokiObject *instance; |
NSSCertificate *c = *cp; |
@@ -490,6 +490,7 @@ |
} |
nssCertificateArray_Destroy(cached); |
} |
+ nssList_Destroy(certList); |
return PR_SUCCESS; |
} |