]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use safe_free macro
authorwessels <>
Fri, 18 Sep 1998 21:14:42 +0000 (21:14 +0000)
committerwessels <>
Fri, 18 Sep 1998 21:14:42 +0000 (21:14 +0000)
src/store_dir.cc

index 889f37d09f10769e973f737a14233bf4ddc72361..22f58cba18a52741d870a8320474bace40be309d 100644 (file)
@@ -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;