Matt Caswell 9f11421950 Unchecked malloc fixes
Miscellaneous unchecked malloc fixes. Also fixed some mem leaks on error
paths as I spotted them along the way.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 918bb8652969fd53f0c390c1cd909265ed502c7e)

Conflicts:
	crypto/bio/bss_dgram.c

Conflicts:
	apps/cms.c
	apps/s_cb.c
	apps/s_server.c
	apps/speed.c
	crypto/dh/dh_pmeth.c
	ssl/s3_pkt.c
2015-03-05 09:22:50 +00:00
..
2015-03-05 09:22:50 +00:00

Mutithreading testing area.

Since this stuff is very very platorm specific, this is not part of the
normal build.  Have a read of doc/threads.doc.

mttest will do some testing and will currently build under Windows NT/95,
Solaris and Linux.  The IRIX stuff is not finished.

I have tested this program on a 12 CPU ultra sparc box (solaris 2.5.1)
and things seem to work ok.

The Linux pthreads package can be retrieved from 
http://www.mit.edu:8001/people/proven/pthreads.html