Chromium Code Reviews| Index: nss/lib/pki/certificate.c |
| diff --git a/nss/lib/pki/certificate.c b/nss/lib/pki/certificate.c |
| index fdf147c9e3dd1bd4cb778d85cd0fb9a3467e11d8..b5d986abe16d92698241160cbbe25b5edf6bb2a2 100644 |
| --- a/nss/lib/pki/certificate.c |
| +++ b/nss/lib/pki/certificate.c |
| @@ -1122,6 +1122,9 @@ nssCRL_Create ( |
| &rvCRL->url, |
| &rvCRL->isKRL); |
| if (status != PR_SUCCESS) { |
| + if (!arena) { |
| + nssPKIObject_Destroy((nssPKIObject *)rvCRL); |
| + } |
| return (NSSCRL *)NULL; |
| } |
| return rvCRL; |