fix memory leaks in augeas and glob