mirror of
https://repo.or.cz/socat.git
synced 2025-07-25 03:32:57 +00:00
dropopts must not free()
This commit is contained in:
parent
3ef7b3e366
commit
1c302dc23c
2 changed files with 4 additions and 2 deletions
|
@ -4173,9 +4173,8 @@ int _xio_openlate(struct single *fd, struct opt *opts) {
|
|||
int dropopts(struct opt *opts, unsigned int phase) {
|
||||
struct opt *opt;
|
||||
|
||||
/*!*/
|
||||
if (phase == PH_ALL) {
|
||||
free(opts);
|
||||
opts[0].desc = ODESC_END;
|
||||
return 0;
|
||||
}
|
||||
opt = opts; while (opt && opt->desc != ODESC_END) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue