diff --git a/pkg/vere/io/ames/ames.c b/pkg/vere/io/ames/ames.c index b20b2191b..3b5748353 100644 --- a/pkg/vere/io/ames/ames.c +++ b/pkg/vere/io/ames/ames.c @@ -264,7 +264,9 @@ _ames_pact_free(u3_pact* pac_u) exit(1); } - _ames_ref_hun_lose(pac_u->hun_u); + if ( pac_u->hun_u ) { + _ames_ref_hun_lose(pac_u->hun_u); + } c3_free(pac_u); }