Memory leak in recv/read string functions fixed.