mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Eliminate a crash and plug a leak in the error path for function
nssSMIMEProfile_Create. Coverity bug 337101. r=alexei.volkov.
This commit is contained in:
parent
9ccdd4236a
commit
505671ed77
@ -35,7 +35,7 @@
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: certificate.c,v $ $Revision: 1.57 $ $Date: 2006/04/07 05:49:04 $";
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: certificate.c,v $ $Revision: 1.58 $ $Date: 2006/05/18 23:29:19 $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef NSSPKI_H
|
||||
@ -930,7 +930,8 @@ nssSMIMEProfile_Create (
|
||||
}
|
||||
return rvProfile;
|
||||
loser:
|
||||
nssPKIObject_Destroy(object);
|
||||
if (object) nssPKIObject_Destroy(object);
|
||||
else if (arena) nssArena_Destroy(arena);
|
||||
return (nssSMIMEProfile *)NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user