Skip to content

Commit 5e9191d

Browse files
committed
fixup! job-list: support constraint -> sql conversion
1 parent 31bbbcc commit 5e9191d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/job-list/constraint_sql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ int constraint2sql (json_t *constraint, char **query, flux_error_t *errp)
325325
}
326326
if (q) {
327327
if (asprintf (&rv, "(%s)", q) < 0) {
328-
free (q);
329328
errno = ENOMEM;
330329
goto error;
331330
}
331+
free (q);
332332
}
333333
(*query) = rv;
334334
return 0;

0 commit comments

Comments
 (0)