source4/lib/registry/patchfile.c(reg_diff_load): fixed possible resource leak.
authorSlava Semushin <php-coder@altlinux.ru>
Sat, 18 Jul 2009 16:30:33 +0000 (23:30 +0700)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 19 Jul 2009 14:01:12 +0000 (16:01 +0200)
commit11fa3ed9ee1a05aabdba902db9899dfeb664b324
tree4afc639c565ca491e652b5d861aa9a393ba21535
parent5f8df164716a43bd9e6c22dfd1f066bf96ccf273
source4/lib/registry/patchfile.c(reg_diff_load): fixed possible resource leak.

File descriptor leaks when write(2) fails and we are returning from
function.

Found by cppcheck:
[./source4/lib/registry/patchfile.c:319]: (error) Resource leak: fd
source4/lib/registry/patchfile.c