Skip to contentSkip to conversation

Fix user record memory leak

SEPOL Ivan Gyurdiev 2 participants 2 messages Oct 20, 2005 – Oct 21, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Patch fixes a memory leak discovered by valgrind.

libsepol/src/user_record.c +1 -0
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
@@ -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);
#1 lore raw
Quoted 1 line · Ivan Gyurdiev

Patch fixes a memory leak discovered by valgrind.

Merged as of libsepol 1.9.24.

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.