Skip to content

Commit

Permalink
Merge pull request #5529 from garlick/issue#5528
Browse files Browse the repository at this point in the history
flux-proxy: fix double-free on lost connection
  • Loading branch information
mergify[bot] authored Nov 3, 2023
2 parents c7d76ba + fcde77f commit ca09abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/builtin/proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ static void proxy_command_destroy_usock_and_router (struct proxy_command *ctx)
ctx->server = NULL;
router_destroy (ctx->router);
ctx->router = NULL;
free (ctx->remote_uri_authority);
}

/* Attempt to reconnect to broker. If successful, wait for for broker to
Expand Down Expand Up @@ -481,6 +480,7 @@ static int cmd_proxy (optparse_t *p, int ac, char *av[])
}
done:
proxy_command_destroy_usock_and_router (&ctx);
free (ctx.remote_uri_authority);

if (ctx.exit_code)
exit (ctx.exit_code);
Expand Down

0 comments on commit ca09abc

Please sign in to comment.