Re: svn commit: r1925463 - in /subversion/trunk/subversion: include/svn_client.h libsvn_client/deprecated.c libsvn_client/patch.c svn/patch-cmd.c tests/libsvn_client/client-test.c
Timofei Zhakov <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.svn,gmane.comp.apache.community.devel |
|---|---|
| Message-ID | <CAPD1kXRrO1HuhH8v6KKA=kfUcGcWWgZXiUN4e65gC1TuaHx7hg@mail.gmail.com> |
[...] > *This* is clearly wrong. If the call to svn_client_patch2 fails, we leak > the file descriptor. That doesn't affect the svn command-line much but it > does affect users of the library. Looking at the whole commit, it appears > that the same bug existed in apply_patches() before your change. > It should not be leaked because it will be free'd on pool cleanup and even the file will be closed. As far as I can tell Subversion relies on this behaviour quite frequently. -- Timofei Zhakov