[PATCH] mux: fix memory leak of control path if bind() fails

Dag-Erling Smørgrav des at des.no
Fri Apr 27 21:43:25 EST 2012


Bert Wesarg <bert.wesarg at googlemail.com> writes:
> +			xfree(orig_control_path);

so you want to free the buffer

>  		error("ControlSocket %s already exists, disabling multiplexing",
>  		    orig_control_path);

about 20 lines before passing it to a printf() equivalent?

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the openssh-unix-dev mailing list