From 6a76db70f1bfbacf5958b88fee0fe16a68f37548 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 14 Feb 1998 01:16:06 +0000 Subject: [PATCH] storeSwapLogData leak --- src/store_dir.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store_dir.cc b/src/store_dir.cc index b1cd35059d..e5551e65d9 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -1,6 +1,6 @@ /* - * $Id: store_dir.cc,v 1.55 1998/02/12 23:36:02 wessels Exp $ + * $Id: store_dir.cc,v 1.56 1998/02/13 18:16:06 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -311,7 +311,7 @@ storeDirProperFileno(int dirn, int fn) void storeDirSwapLog(const StoreEntry * e, int op) { - storeSwapLogData *s = xcalloc(1, sizeof(storeSwapLogData)); + storeSwapLogData *s; int dirn; dirn = e->swap_file_number >> SWAP_DIR_SHIFT; assert(dirn < Config.cacheSwap.n_configured); @@ -327,6 +327,7 @@ storeDirSwapLog(const StoreEntry * e, int op) swap_log_op_str[op], storeKeyText(e->key), e->swap_file_number); + s = xcalloc(1, sizeof(storeSwapLogData)); s->op = (char) op; s->swap_file_number = e->swap_file_number; s->timestamp = e->timestamp; -- 2.47.2