projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c31674
)
src/utils_cache.c: Fix a serious memory leak.
author
Florian Forster
<octo@huhu.verplant.org>
Fri, 10 Oct 2008 06:17:22 +0000
(08:17 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Fri, 10 Oct 2008 06:18:19 +0000
(08:18 +0200)
Whenever a data set went missing, the its name (the `key'; up to (5*64)+4
bytes) was not free'd.
Thanks to Niraj Tolia for reporting this :)
src/utils_cache.c
patch
|
blob
|
history
diff --git
a/src/utils_cache.c
b/src/utils_cache.c
index
9f7e3b6
..
6d96516
100644
(file)
--- a/
src/utils_cache.c
+++ b/
src/utils_cache.c
@@
-299,6
+299,7
@@
int uc_check_timeout (void)
ERROR ("uc_check_timeout: c_avl_remove (%s) failed.", keys[i]);
}
sfree (keys[i]);
+ sfree (key);
cache_free (ce);
}
else if (status == 1) /* persist */