[repost?] idea for catching memory leaks

Nathan Bryant (nathan@nbryan71.dorm.usm.maine.edu)
Mon, 27 Oct 1997 14:16:31 -0500 (EST)


well, I'll send this again... looks like it might have gotten lost in the
confusion of a few days ago. I've received no replies, at least.

---------- Forwarded message ----------
Date: Fri, 24 Oct 1997 19:09:40 -0400 (EDT)
From: Nathan Bryant <nathan@nbryan71.dorm.usm.maine.edu>
To: linux-kernel@vger.rutgers.edu
Subject: idea for catching memory leaks

here's a simple idea for catching memory leaks: modify kmalloc() so that
it examines its call frame and tags each chunk of memory with the address
kmalloc() was called from. i'd be surprised if nobody has thought of
something like this before; has anyone done patches for that sort of
thing?

Nathan Bryant
nathan@nbryan71.dorm.usm.maine.edu
nbryan71@mail.caps.maine.edu