diff --git a/src/modules/job-list/match.c b/src/modules/job-list/match.c index f60764bc6923..5eec29b8f445 100644 --- a/src/modules/job-list/match.c +++ b/src/modules/job-list/match.c @@ -505,7 +505,6 @@ static struct list_constraint *create_hostlist_constraint ( } if (!zlistx_add_end (c->values, hl)) { errprintf (errp, "failed to append hostlist structure"); - hostlist_destroy (hl); goto error; } return c;