fix double-free when adding cert to chain
fix double-free when adding cert to chain

Change-Id: I8d6fd56642ac5f87dd9fb4f78df64bb1f39494b7

spacemonkeygo/openssl,10gen/openssl,spacemonkeygo/openssl,10gen/openssl,xakep666/openssl,xakep666/openssl