[PATCH -next 0/2] Fix memory leaks for kobject

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix two memory leaks for kobject name, thanks!

Gaosheng Cui (2):
  kobject: fix memory leak in kset_register() due to uninitialized
    kset->kobj.ktype
  kobject: fix memory leak when kobject_add_varg() returns error

 lib/kobject.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

-- 
2.25.1





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux