projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f56b98
)
utils_cache: Free then unused memory before returning in an error condition.
author
Sebastian Harl
<sh@tokkee.org>
Tue, 20 Jan 2009 12:24:54 +0000
(13:24 +0100)
committer
Sebastian Harl
<sh@tokkee.org>
Tue, 20 Jan 2009 12:24:54 +0000
(13:24 +0100)
src/utils_cache.c
patch
|
blob
|
history
diff --git
a/src/utils_cache.c
b/src/utils_cache.c
index
6779bba
..
7938412
100644
(file)
--- a/
src/utils_cache.c
+++ b/
src/utils_cache.c
@@
-187,6
+187,7
@@
static int uc_insert (const data_set_t *ds, const value_list_t *vl,
ce = cache_alloc (ds->ds_num);
if (ce == NULL)
{
+ sfree (key_copy);
ERROR ("uc_insert: cache_alloc (%i) failed.", ds->ds_num);
return (-1);
}