This has nothing to do with the language and everything to do with the programmers and practices - some great write-ups:
http://www.tedunangst.com/flak/post/analysis-of-openssl-free...
Who can resist Theo: http://article.gmane.org/gmane.os.openbsd.misc/211963