Research Menu

.
Skip Search Box

SELinux Mailing List

[PATCH 6/6] libsepol: resource leak in avrule_decl_create

From: serue_at_us.ibm.com
Date: Mon, 22 Aug 2005 11:20:59 -0500


This patch fixes a resource leak found by Coverity:

	avrule_decl_destroy(decl) does not free decl itself.
	Must do so manually on after avrule_decl_destroy().

thanks,
-serge

Index: src/avrule_block.c


  • src.orig/avrule_block.c +++ src/avrule_block.c @@ -49,6 +49,7 @@ avrule_decl_t *avrule_decl_create(uint32 for (i = 0; i < SYM_NUM; i++) { if (symtab_init(&decl->symtab[i], symtab_sizes[i])) { avrule_decl_destroy(decl); + free(decl); return NULL; } }

--

This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message. Received on Mon 22 Aug 2005 - 17:16:35 EDT

 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service