projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
358ef2c
)
redis plugin: Fix coredump when stopping Collectd with inaccessible Redis server
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Thu, 23 Aug 2018 07:21:44 +0000
(14:21 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Thu, 23 Aug 2018 07:21:44 +0000
(14:21 +0700)
src/redis.c
patch
|
blob
|
history
diff --git
a/src/redis.c
b/src/redis.c
index
41442b6
..
dd4deb1
100644
(file)
--- a/
src/redis.c
+++ b/
src/redis.c
@@
-97,7
+97,8
@@
static void redis_node_free(void *arg) {
rq = next;
}
- redisFree(rn->redisContext);
+ if (rn->redisContext)
+ redisFree(rn->redisContext);
sfree(rn->name);
sfree(rn->host);
sfree(rn->passwd);