BUG/MINOR: ssl/cli: free the trash chunk in dump_crtlist

Free the trash chunk after dumping the crt-lists.

Introduced by a6ffd5b ("MINOR: ssl/cli: show/dump ssl crt-list").
This commit is contained in:
William Lallemand 2020-03-17 15:13:11 +01:00 committed by William Lallemand
parent a6ffd5bf8a
commit 2ea1b49832

View File

@ -11028,9 +11028,11 @@ static int cli_io_handler_dump_crtlist(struct appctx *appctx)
} }
lnode = ebmb_next(lnode); lnode = ebmb_next(lnode);
} }
free_trash_chunk(trash);
return 1; return 1;
yield: yield:
appctx->ctx.cli.p1 = lnode; appctx->ctx.cli.p1 = lnode;
free_trash_chunk(trash);
return 0; return 0;
} }
@ -11075,9 +11077,11 @@ static int cli_io_handler_dump_crtlist_entries(struct appctx *appctx)
goto yield; goto yield;
} }
} }
free_trash_chunk(trash);
return 1; return 1;
yield: yield:
appctx->ctx.cli.p1 = entry; appctx->ctx.cli.p1 = entry;
free_trash_chunk(trash);
return 0; return 0;
} }