checking for null and correct memmroy leak part of bug 252 patch by j_anderw
drwxr-xr-x - cis
drwxr-xr-x - irc
drwxr-xr-x - msvc6
drwxr-xr-x - os2
drwxr-xr-x - posix
drwxr-xr-x - reactos
drwxr-xr-x - rosapps
drwxr-xr-x - rosky
drwxr-xr-x - vms