From: wessels <> Date: Fri, 18 Sep 1998 21:14:42 +0000 (+0000) Subject: use safe_free macro X-Git-Tag: SQUID_3_0_PRE1~2700 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60a05f69c03ee61940b022e08e8c6b6ae19c7e16;p=thirdparty%2Fsquid.git use safe_free macro --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 889f37d09f..22f58cba18 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -1,6 +1,6 @@ /* - * $Id: store_dir.cc,v 1.77 1998/09/15 19:38:02 wessels Exp $ + * $Id: store_dir.cc,v 1.78 1998/09/18 15:14:42 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -246,11 +246,9 @@ storeDirSelectSwapDir(void) if (nconf != Config.cacheSwap.n_configured) { nconf = Config.cacheSwap.n_configured; nleast = (nconf * 3) / 4; - if (dirq != NULL) - xfree(dirq); + safe_free(dirq); dirq = (int *) xmalloc(sizeof(int) * nleast); - if (diru != NULL) - xfree(diru); + safe_free(diru); diru = (double *) xmalloc(sizeof(double) * nconf); for (j = 0; j < nleast; j++) dirq[j] = -1;