Add talloc_frees in error cases in net_gpo.c