git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
864852a
)
Fix coverity CID#66. Resource leak in error path.
author
Jeremy Allison
<jra@samba.org>
Fri, 30 Jan 2009 01:16:34 +0000
(17:16 -0800)
committer
Jeremy Allison
<jra@samba.org>
Fri, 30 Jan 2009 01:16:34 +0000
(17:16 -0800)
Jeremy.
lib/util/xfile.c
patch
|
blob
|
history
diff --git
a/lib/util/xfile.c
b/lib/util/xfile.c
index cf195706db0b7514f41a1b5fc0c20eefbb99bb71..16499e17367cc1e89c1973bb6d4337ced0f15d5c 100644
(file)
--- a/
lib/util/xfile.c
+++ b/
lib/util/xfile.c
@@
-112,6
+112,7
@@
XFILE *x_fopen(const char *fname, int flags, mode_t mode)
if ((flags & O_ACCMODE) == O_RDWR) {
/* we don't support RDWR in XFILE - use file
descriptors instead */
+ SAFE_FREE(ret);
errno = EINVAL;
return NULL;
}