diff options
| author | Richard W.M. Jones <rjones@redhat.com> | 2012-01-24 16:42:39 +0000 |
|---|---|---|
| committer | Richard W.M. Jones <rjones@redhat.com> | 2012-01-24 18:24:24 +0000 |
| commit | 72e4a603bc1ba26bf830a530f2e4d688b09fbb83 (patch) | |
| tree | f755aa56dede4c8566e9c600070dbec50386f2a4 /python/run-bindtests | |
| parent | 2bd75d2100eef0930cfbdf7f4725acb01152a1d7 (diff) | |
| download | libguestfs-72e4a603bc1ba26bf830a530f2e4d688b09fbb83.tar.gz libguestfs-72e4a603bc1ba26bf830a530f2e4d688b09fbb83.tar.xz libguestfs-72e4a603bc1ba26bf830a530f2e4d688b09fbb83.zip | |
daemon: Fix use-after-free in case-insensitive-path (found by valgrind).
This commit tidies up the code by splitting out the path
element-searching code into a separate function.
Valgrind found that 'closedir' frees the 'struct dirent *', which
wasn't immediately obvious. So now we do the 'closedir' after all
operations which touch 'd->d_name'.
(cherry picked from commit a05ddcd2a719f97ba036e9d6ca4e6491ed8b1fd0)
Diffstat (limited to 'python/run-bindtests')
0 files changed, 0 insertions, 0 deletions
