Re: [CHECKER] 32 Memory Leaks on Error Paths

From: Chris Wright
Date: Tue Sep 23 2003 - 13:04:14 EST


* Stephen Smalley (sds@xxxxxxxxxxxxxx) wrote:
> Sorry for the duplicated effort, but I had already written up a patch
> prior to the hurricane, but didn't get it sent out. I believe that the
> patch below fixes the legitimate leaks in the SELinux code. In some
> cases, it rearranges the code (moving the allocation later to reduce the
> need for further cleanup or linking the object into a containing
> structure earlier so that the policydb_destroy will handle it upon any
> subsequent errors).

No problem, your patch looks better anyway ;-)
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/