This is coming from the perspective a person who is not a web programmer, but who has done lower-level programming. Memory leaks and other things (security issues included) are going to naturally come from focusing the education entirely on upper stack subjects. One must understand the complete machine in order to actually make things solid. The complexity is making that increasingly difficult to do these days unfortunately.