DEVTOOLS: Fix unimportant memory/resource leaks

CID 1022280, 1022281, 1022282