Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a2ac0
)
Fixed a potential memory leak in make_file().
author
Wayne Davison
<wayned@samba.org>
Sat, 15 Dec 2007 19:57:34 +0000
(11:57 -0800)
committer
Wayne Davison
<wayned@samba.org>
Sat, 15 Dec 2007 19:57:34 +0000
(11:57 -0800)
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
732c242
..
cc7a873
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-1231,8
+1231,11
@@
struct file_struct *make_file(const char *fname, struct file_list *flist,
file->mode = save_mode;
}
- if (basename_len == 0+1)
+ if (basename_len == 0+1) {
+ if (!pool)
+ unmake_file(file);
return NULL;
+ }
if (unsort_ndx)
F_NDX(file) = dir_count;