>Which code analyzer found that? Sorry, I should have mentioned that. cppcheck, as in http://cppcheck.sourceforge.net/ I find it a useful tool.