Fix leak of optional package sections
Sometimes it pays off to wait 5+ minutes for valgrind to process the semanage strict commit :)
libsepol/src/module.c +8 -6
@@ -112,12 +112,14 @@ hidden_def(sepol_module_package_create)* the pointer itself. Does nothing if p is NULL. */ void sepol_module_package_free (sepol_module_package_t *p) { -if (p ==NULL ) { -return ; - } -sepol_policydb_free (p->policy); -free (p->file_contexts); -free (p); +if (p ==NULL ) +return ; + +sepol_policydb_free (p->policy); +free (p->file_contexts); +free (p->seusers); +free (p->user_extra); +free (p); }hidden_def (sepol_module_package_free)
Quoted 2 lines · Ivan Gyurdiev
Sometimes it pays off to wait 5+ minutes for valgrind to process the semanage strict commit :)
Thanks, merged internally. sourceforge cvs is presently broken, so not there yet.
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.