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 branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
CRED: Fix memory leak in error handling

+5 -1
+5 -1
kernel/cred.c
··· 364 364 365 365 new = kmem_cache_alloc(cred_jar, GFP_ATOMIC); 366 366 if (!new) 367 - return NULL; 367 + goto free_tgcred; 368 368 369 369 kdebug("prepare_usermodehelper_creds() alloc %p", new); 370 370 ··· 397 397 398 398 error: 399 399 put_cred(new); 400 + free_tgcred: 401 + #ifdef CONFIG_KEYS 402 + kfree(tgcred); 403 + #endif 400 404 return NULL; 401 405 } 402 406