[kobject] Fix memory leak in kobject_set_name().
If kobject_set_name() is called when the kobject already has a name that was dynamically allocated (too long for the static array), then we must free that memory. Noticed by Jon Corbet.
Showing
Please register or sign in to comment