Fix user record memory leak
Patch fixes a memory leak discovered by valgrind.
libsepol/src/user_record.c +1 -0
@@ -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);
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.