Baptiste Daroussin 0ce8c4a33c Plug various resources leak
While here fix a test logic

Reported by:	coverity
CID:		1332096, 1332097, 1332098, 1332099, 1332100, 1332101, 1332102
MFC after:	1 week
2016-04-20 21:32:34 +00:00
..
2015-11-17 20:42:59 +00:00
2016-04-20 21:11:49 +00:00
2016-04-20 21:32:34 +00:00