All of lore.kernel.org
 help / color / mirror / Atom feed
From: Todd.Miller@sparta.com
To: "SE Linux" <selinux@tycho.nsa.gov>
Subject: PATCH: setfiles memory leak
Date: Wed, 7 Feb 2007 12:09:56 -0500 (EST)	[thread overview]
Message-ID: <200702071709.l17H9ute004872@tex.courtesan.com> (raw)

This patch fixes a memory leak on an error path.

 - todd

--- policycoreutils-1.34.1/setfiles/setfiles.c	2006-06-29 14:21:16.000000000 -0400
+++ policycoreutils-1.34.1/setfiles/setfiles.c	2007-02-06 17:00:19.000000000 -0500
@@ -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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

             reply	other threads:[~2007-02-07 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-07 17:09 Todd.Miller [this message]
2007-02-20 15:28 ` PATCH: setfiles memory leak Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200702071709.l17H9ute004872@tex.courtesan.com \
    --to=todd.miller@sparta.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.