diff options
author | Ryan Sleevi <ryan.sleevi@gmail.com> | 2013-09-27 19:54:35 -0700 |
---|---|---|
committer | Ryan Sleevi <ryan.sleevi@gmail.com> | 2013-09-27 19:54:35 -0700 |
commit | 57bcaef622b40c14ff081ebbaac123b94e4b16fe (patch) | |
tree | 4a36eca17dcb057dfb5726adbd3129b500fb137c /lib/certdb | |
parent | f01a3ac0a9083f3a12e6491d25bca45048142d01 (diff) | |
download | nss-hg-57bcaef622b40c14ff081ebbaac123b94e4b16fe.tar.gz |
Bug 921696: CERT_DecodeOidSequence should cleanup the arena on failure.
Diffstat (limited to 'lib/certdb')
-rw-r--r-- | lib/certdb/polcyxtn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/certdb/polcyxtn.c b/lib/certdb/polcyxtn.c index b958e5a2a..cef4783ce 100644 --- a/lib/certdb/polcyxtn.c +++ b/lib/certdb/polcyxtn.c @@ -643,6 +643,9 @@ CERT_DecodeOidSequence(const SECItem *seqItem) return(oidSeq); loser: + if (arena) { + PORT_FreeArena(arena, PR_FALSE); + } return(NULL); } |