patch fix memory leak in gco_python