sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.17k stars 208 forks source link

Fix memory leak in copy_vector() in the error path. #203

Closed BornThisWay closed 1 year ago

BornThisWay commented 1 year ago

A resource leak may occur in the error path. https://github.com/sudo-project/sudo/issues/202

millert commented 1 year ago

Thanks, that call to sudo_mmap_free() should simply have been free_vector(). I fixed this in 9c694e9.