Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2be15bd authored by Li Dongyang's avatar Li Dongyang Committed by Matthew Garrett
Browse files

thinkpad_acpi: Fix a memory leak during module exit



We should free the thinkpad_id.nummodel_str during exit as it's allocated
in get_thinkpad_module_data().

Signed-off-by: default avatarLi Dongyang <Jerry87905@gmail.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent e03e389d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8970,6 +8970,7 @@ static void thinkpad_acpi_module_exit(void)
	kfree(thinkpad_id.bios_version_str);
	kfree(thinkpad_id.ec_version_str);
	kfree(thinkpad_id.model_str);
	kfree(thinkpad_id.nummodel_str);
}