From: Ivan Gyurdiev <ivg2@cornell.edu>
To: selinux@tycho.nsa.gov
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Subject: [ SEPOL ] Fix user record memory leak
Date: Thu, 20 Oct 2005 14:01:22 -0400 [thread overview]
Message-ID: <4357DB72.4090004@cornell.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 50 bytes --]
Patch fixes a memory leak discovered by valgrind.
[-- Attachment #2: libsepol.user_memleak.diff --]
[-- Type: text/x-patch, Size: 594 bytes --]
diff -Naurp --exclude CVS --exclude ChangeLog --exclude VERSION --exclude libsemanage.map --exclude 'module_record*' --exclude 'database_directory*' old/libsepol/src/user_record.c new/libsepol/src/user_record.c
--- old/libsepol/src/user_record.c 2005-09-30 16:19:08.000000000 -0400
+++ new/libsepol/src/user_record.c 2005-10-20 13:57:37.000000000 -0400
@@ -361,6 +361,7 @@ void sepol_user_free(sepol_user_t* user)
free(user->name);
for (i = 0; i < user->num_roles; i++)
free(user->roles[i]);
+ free(user->def_role);
free(user->roles);
free(user->mls_level);
free(user->mls_range);
next reply other threads:[~2005-10-20 18:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-20 18:01 Ivan Gyurdiev [this message]
2005-10-21 14:09 ` [ SEPOL ] Fix user record 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=4357DB72.4090004@cornell.edu \
--to=ivg2@cornell.edu \
--cc=sds@tycho.nsa.gov \
--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.