Fix a mem leak on an error path in OBJ_NAME_add()
authorMatt Caswell <matt@openssl.org>
Mon, 9 May 2016 16:44:26 +0000 (17:44 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 23 May 2016 23:09:56 +0000 (00:09 +0100)
commit0a618df059d93bf7fe9e3ec92e04db8bc1eeff07
tree8b1dd564d29c3847c8f5122f8af8288b8dc24cac
parent308ff28673ae1a4a1b346761224b4a8851d41f58
Fix a mem leak on an error path in OBJ_NAME_add()

If lh_OBJ_NAME_insert() fails then the allocated |onp| value is leaked.

RT#2238

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/objects/o_names.c