menu: Fix pmm_free() call with off-by-one length

This commit is contained in:
Mintsuki 2025-12-06 15:35:46 +01:00
parent 7ee698d544
commit e6bd838bc6
No known key found for this signature in database
GPG Key ID: 1F3C021BECA23821

View File

@ -827,7 +827,7 @@ noreturn void _menu(bool first_run) {
if (interface_help_colour_str != NULL) {
interface_help_colour[3] = interface_help_colour_str[0];
interface_help_colour_bright[3] = interface_help_colour_str[0];
pmm_free(interface_help_colour_str, strlen(interface_help_colour_str));
pmm_free(interface_help_colour_str, strlen(interface_help_colour_str) + 1);
}
menu_branding = config_get_value(NULL, 0, "INTERFACE_BRANDING");