Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'selinux-pr-20190801' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux

Pull selinux fix from Paul Moore:
"One more small fix for a potential memory leak in an error path"

* tag 'selinux-pr-20190801' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
selinux: fix memory leak in policydb_init()

+5 -1
+5 -1
security/selinux/ss/policydb.c
··· 272 272 return v; 273 273 } 274 274 275 + static int (*destroy_f[SYM_NUM]) (void *key, void *datum, void *datap); 276 + 275 277 /* 276 278 * Initialize a policy database structure. 277 279 */ ··· 321 319 out: 322 320 hashtab_destroy(p->filename_trans); 323 321 hashtab_destroy(p->range_tr); 324 - for (i = 0; i < SYM_NUM; i++) 322 + for (i = 0; i < SYM_NUM; i++) { 323 + hashtab_map(p->symtab[i].table, destroy_f[i], NULL); 325 324 hashtab_destroy(p->symtab[i].table); 325 + } 326 326 return rc; 327 327 } 328 328