]> git.tuebingen.mpg.de Git - paraslash.git/commit
recv_common: fix memory leak and invalid free in error path
authorAndre Noll <maan@systemlinux.org>
Sun, 11 Feb 2007 22:45:52 +0000 (23:45 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 11 Feb 2007 22:45:52 +0000 (23:45 +0100)
commit5ac60f47e2404603690ae509252a852ac2d74c61
tree6ddf4b7dee552812db1f547c3a45f8cec92457fe
parent7e15423daa82f48d09d946c052a01ab35b40fbee
recv_common: fix memory leak and invalid free in error path

As split_args() returns pointers that point within the given string,
it is wrong to free the individual pieces. However, the array of
substrings must be freed. parse_receiver_args() got both of these
wrong :(
recv_common.c