lib/util/util_file.c(file_save): fixed file descriptor leak when read(2) fails.
commit5f8df164716a43bd9e6c22dfd1f066bf96ccf273
authorSlava Semushin <php-coder@altlinux.ru>
Sat, 18 Jul 2009 09:28:53 +0000 (18 16:28 +0700)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 19 Jul 2009 14:00:39 +0000 (19 16:00 +0200)
tree97a1f7c1c2bff24964e4bb4e89d52aa7412a8fdc
parenta817cff5a0f17c6a8b35013483a18c70acdfaa1c
lib/util/util_file.c(file_save): fixed file descriptor leak when read(2) fails.

Found by cppcheck:
[./lib/util/util_file.c:383]: (error) Resource leak: fd
lib/util/util_file.c