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:
a0f7023
)
In pool_free_old(), one code path was not clearing a "next" pointer,
author
Wayne Davison
<wayned@samba.org>
Tue, 21 Aug 2007 05:04:02 +0000
(
05:04
+0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 21 Aug 2007 05:04:02 +0000
(
05:04
+0000)
so the code could try to free an extent twice in certain circumstances.
lib/pool_alloc.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/pool_alloc.c
b/lib/pool_alloc.c
index
e1ce50b
..
0fb3122
100644
(file)
--- a/
lib/pool_alloc.c
+++ b/
lib/pool_alloc.c
@@
-255,6
+255,7
@@
pool_free_old(alloc_pool_t p, void *addr)
cur->free -= skew;
}
next = cur->next;
+ cur->next = NULL;
}
} else {
next = cur->next;