level_add_node(): if a memory allocation failure causes us to attempt to clean
authormiod <miod@openbsd.org>
Wed, 23 Jul 2014 20:49:52 +0000 (20:49 +0000)
committermiod <miod@openbsd.org>
Wed, 23 Jul 2014 20:49:52 +0000 (20:49 +0000)
commitdf2eea7353a9662db07fade22af26855dcbf6846
tree854406329f49231923f1b583005cc04d29a64c92
parent22ef553aae387132af612332a700c963f580fd98
level_add_node(): if a memory allocation failure causes us to attempt to clean
up and return failure, be sure the cleanup work does NOT free objects which
are still being referenced by other objects.

ok guenther@
lib/libcrypto/x509v3/pcy_node.c
lib/libssl/src/crypto/x509v3/pcy_node.c