* [ SEPOL ] Fix user record memory leak
@ 2005-10-20 18:01 Ivan Gyurdiev
2005-10-21 14:09 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Gyurdiev @ 2005-10-20 18:01 UTC (permalink / raw)
To: selinux; +Cc: Stephen Smalley
[-- 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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ SEPOL ] Fix user record memory leak
2005-10-20 18:01 [ SEPOL ] Fix user record memory leak Ivan Gyurdiev
@ 2005-10-21 14:09 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2005-10-21 14:09 UTC (permalink / raw)
To: Ivan Gyurdiev; +Cc: selinux
On Thu, 2005-10-20 at 14:01 -0400, Ivan Gyurdiev wrote:
> Patch fixes a memory leak discovered by valgrind.
Merged as of libsepol 1.9.24.
--
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-21 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20 18:01 [ SEPOL ] Fix user record memory leak Ivan Gyurdiev
2005-10-21 14:09 ` Stephen Smalley
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.