Skip to contentSkip to conversation

PATCH: setfiles memory leak

PATCH Applied [email protected] 2 participants 2 messages Feb 7, 2007 – Feb 20, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

This patch fixes a memory leak on an error path.

- todd

setfiles/setfiles.c +1 -0
@@ -357,6 +357,7 @@
 				"%s: %s not reset customized by admin to %s\n",
 				progname, my_file, context);
 		}
+		freecon(context);
 		goto out;
 	}
 

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 7 lines · On Wed, 2007-02-07 at 12:09 -0500, [email protected] wrote:

This patch fixes a memory leak on an error path.

- todd

setfiles/setfiles.c line 363

Quoted 7 lines
setfiles/setfiles.c +1 -0
@@ -357,6 +357,7 @@
 				"%s: %s not reset customized by admin to %s\n",
 				progname, my_file, context);
 		}
+		freecon(context);
 		goto out;
 	}
 

Merged to -stable and to -trunk.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.