git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e78f687
)
Fix Coverity IDs 451, 452
author
Volker Lendecke
<vl@samba.org>
Fri, 25 Jan 2008 10:13:19 +0000
(11:13 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 25 Jan 2008 19:55:51 +0000
(20:55 +0100)
source/registry/regfio.c
patch
|
blob
|
history
diff --git
a/source/registry/regfio.c
b/source/registry/regfio.c
index 92077aa84788c40519870610f2acc27f6294ae6a..3740ff0ee4a5d8e956fd891b6f71aa92144a2a7f 100644
(file)
--- a/
source/registry/regfio.c
+++ b/
source/registry/regfio.c
@@
-1234,7
+1234,7
@@
static void regfio_mem_free( REGF_FILE *file )
/* cleanup for a file opened for write */
- if (
file->open_flags & (O_WRONLY|O_RDWR)
) {
+ if (
(file->fd != -1) && (file->open_flags & (O_WRONLY|O_RDWR))
) {
prs_struct ps;
REGF_SK_REC *sk;