1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

Merge pull request #12156 from yuwata/fix-bootspec-memleaks

bootspec: fix memleaks
This commit is contained in:
Lennart Poettering 2019-04-01 12:46:37 +02:00 committed by GitHub
commit 78b4bca607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,6 +160,7 @@ void boot_config_free(BootConfig *config) {
free(config->editor);
free(config->auto_entries);
free(config->auto_firmware);
free(config->console_mode);
free(config->entry_oneshot);
free(config->entry_default);
@ -735,7 +736,7 @@ int boot_entries_augment_from_loader(BootConfig *config, bool only_auto) {
"auto-reboot-to-firmware-setup", "Reboot Into Firmware Interface",
};
_cleanup_free_ char **found_by_loader = NULL;
_cleanup_strv_free_ char **found_by_loader = NULL;
size_t n_allocated;
char **i;
int r;