aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorresec <resec0109@gmail.com>2019-11-19 22:18:41 +0800
committerresec <resec0109@gmail.com>2019-11-19 22:18:41 +0800
commit004eb44a8652214635ffeb8b08e56b4347a5aa60 (patch)
tree6fe6d459e66e0133f0f3cf088fae82b8f5845c10 /src
parent811f3d7c675d12860231d269bc728047f9ba80ff (diff)
downloadrspamd-004eb44a8652214635ffeb8b08e56b4347a5aa60.tar.gz
rspamd-004eb44a8652214635ffeb8b08e56b4347a5aa60.zip
eliminate smembers: remove redundent cleanup
Diffstat (limited to 'src')
-rw-r--r--src/libstat/backends/redis_backend.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c
index d4ac6a30e..ec65a133f 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -921,17 +921,7 @@ rspamd_redis_stat_keys (redisAsyncContext *c, gpointer r, gpointer priv)
}
if (more) {
- /* Cleanup the cbdata->cur_keys and re-allowcate */
- for (i = 0; i < cbdata->cur_keys->len; i ++) {
- k = g_ptr_array_index (cbdata->cur_keys, i);
- g_free (k);
- }
-
- g_ptr_array_free (cbdata->cur_keys, TRUE);
-
- cbdata->cur_keys = g_ptr_array_new ();
-
- /* Get more keys */
+ /* Get more stat keys */
redisAsyncCommand (cbdata->redis, rspamd_redis_stat_keys, redis_elt,
"SSCAN %s_keys %s COUNT 1000",
cbdata->elt->ctx->stcf->symbol, more_elt->str);