From: wessels <> Date: Sat, 14 Feb 1998 01:16:06 +0000 (+0000) Subject: storeSwapLogData leak X-Git-Tag: SQUID_3_0_PRE1~4095 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a76db70f1bfbacf5958b88fee0fe16a68f37548;p=thirdparty%2Fsquid.git storeSwapLogData leak --- 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;