mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-16 17:18:50 -05:00
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:
parent
a6ffd5bf8a
commit
2ea1b49832
1 changed files with 4 additions and 0 deletions
|
|
@ -11028,9 +11028,11 @@ static int cli_io_handler_dump_crtlist(struct appctx *appctx)
|
|||
}
|
||||
lnode = ebmb_next(lnode);
|
||||
}
|
||||
free_trash_chunk(trash);
|
||||
return 1;
|
||||
yield:
|
||||
appctx->ctx.cli.p1 = lnode;
|
||||
free_trash_chunk(trash);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -11075,9 +11077,11 @@ static int cli_io_handler_dump_crtlist_entries(struct appctx *appctx)
|
|||
goto yield;
|
||||
}
|
||||
}
|
||||
free_trash_chunk(trash);
|
||||
return 1;
|
||||
yield:
|
||||
appctx->ctx.cli.p1 = entry;
|
||||
free_trash_chunk(trash);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue