From a31e2555b4f5f7645e6e534d992cfc33862a47da Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 19 Dec 2015 12:38:18 +1100 Subject: [PATCH] ckdb - add a missing lock --- src/ckdb.c | 2 ++ src/ckdb.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ckdb.c b/src/ckdb.c index 299c177e..80da6fad 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -2877,7 +2877,9 @@ static enum cmd_values breakdown(K_ITEM **ml_item, char *buf, tv_t *now, if (find_in_ktree_nolock(msgline->trf_root, t_item, ctx)) { if (transfer->mvalue != transfer->svalue) FREENULL(transfer->mvalue); + K_WLOCK(transfer_free); k_add_head(transfer_free, t_item); + K_WUNLOCK(transfer_free); } else { add_to_ktree_nolock(msgline->trf_root, t_item); k_add_head_nolock(msgline->trf_store, t_item); diff --git a/src/ckdb.h b/src/ckdb.h index 16e33eb7..c7248193 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -55,7 +55,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.4" -#define CKDB_VERSION DB_VERSION"-1.620" +#define CKDB_VERSION DB_VERSION"-1.621" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__