diff mbox series

Fix memory leak in boot handler

Message ID 20211021193609.32928-1-sbabic@denx.de
State Accepted
Headers show
Series Fix memory leak in boot handler | expand

Commit Message

Stefano Babic Oct. 21, 2021, 7:36 p.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 handlers/boot_handler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/handlers/boot_handler.c b/handlers/boot_handler.c
index 7bae5eaa..73c91166 100644
--- a/handlers/boot_handler.c
+++ b/handlers/boot_handler.c
@@ -115,7 +115,7 @@  static int install_boot_environment(struct img_type *img,
 				}
 			}
 		}
-		free(pair);
+		free_string_array(pair);
 	}
 	/*
 	 * this handler does not use copyfile()