Fix gp_initialize leaks