From: wessels <> Date: Tue, 27 Aug 1996 11:17:50 +0000 (+0000) Subject: check for putting NULL pointers X-Git-Tag: SQUID_3_0_PRE1~5913 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cadbacbdf2f4968228e4ffe2e68e042870cced44;p=thirdparty%2Fsquid.git check for putting NULL pointers --- diff --git a/src/stmem.cc b/src/stmem.cc index 93ad5f08e3..254f0d92e8 100644 --- a/src/stmem.cc +++ b/src/stmem.cc @@ -1,5 +1,5 @@ /* - * $Id: stmem.cc,v 1.18 1996/08/21 20:11:56 wessels Exp $ + * $Id: stmem.cc,v 1.19 1996/08/27 05:17:50 wessels Exp $ * * DEBUG: section 19 Memory Primitives * AUTHOR: Harvest Derived @@ -420,6 +420,8 @@ static void put_free_thing(thing, p) stmem_stats *thing; void *p; { + if (p == NULL) + fatal_dump("Somebody is putting a NULL pointer!"); thing->n_pages_in_use--; if (thing->total_pages_allocated > thing->max_pages) { xfree(p);