Fix a memory leak in bss_dgram.
authordoug <doug@openbsd.org>
Mon, 12 Jan 2015 02:15:23 +0000 (02:15 +0000)
committerdoug <doug@openbsd.org>
Mon, 12 Jan 2015 02:15:23 +0000 (02:15 +0000)
commit506b1b69c2c6fdbffe678905864ee20ecc78f11d
tree0cfce9e1c1c6854abc5333232222081176a8787c
parent95ba0514c151df93531da4c6d267bf0be0d09f11
Fix a memory leak in bss_dgram.

Free data->saved_message.data.  Based on OpenSSL commit:
41cd41c4416f545a18ead37e09e437c75fa07c95 except this version sets a->ptr
to NULL to avoid accidental reuse and handles malloc failing.

ok beck@, input + ok miod@
lib/libcrypto/bio/bss_dgram.c
lib/libssl/src/crypto/bio/bss_dgram.c