Fix memory leak reporting.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 8 Feb 2015 13:14:05 +0000 (13:14 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 9 Feb 2015 13:01:15 +0000 (13:01 +0000)
commitba25221226f0c9b033d8ff8a2a2bde8b359c6426
tree98c7c83b7cc8f6d60571b9937731f15755c7b5b4
parent506805e708604efb9448d26e9e94c14cb2d9ccd9
Fix memory leak reporting.

Free up bio_err after memory leak data has been printed to it.

In int_free_ex_data if ex_data is NULL there is nothing to free up
so return immediately and don't reallocate it.
Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 9c7a780bbebc1b6d87dc38a6aa3339033911a8bb)
apps/openssl.c
crypto/ex_data.c