mirror of
https://gitlab.postmarketos.org/postmarketOS/pmaports.git
synced 2025-07-12 16:19:48 +03:00
Hopefully these can be merged in the repo we track, but let's add them to pmaports in the meanwhile. Fixes issue where allocated, but non-set memory is used, which gives unpredictable behaviour. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6746 [ci:skip-build]: already built successfully in CI
25 lines
536 B
Diff
25 lines
536 B
Diff
From 09df703183035495012a3af494243d37b8f93b31 Mon Sep 17 00:00:00 2001
|
|
From: Henrik Grimler <henrik@grimler.se>
|
|
Date: Mon, 30 Jun 2025 16:36:08 +0200
|
|
Subject: [PATCH] scan_dtb_path: free struct from scandir
|
|
|
|
To not leak memory.
|
|
---
|
|
dtbtool-exynos.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/dtbtool-exynos.c b/dtbtool-exynos.c
|
|
index 017f6d3bc408..9bc10e1ce94b 100644
|
|
--- a/dtbtool-exynos.c
|
|
+++ b/dtbtool-exynos.c
|
|
@@ -154,6 +154,7 @@ next_f:
|
|
free(de[f]);
|
|
printf("%s\n", "");
|
|
}
|
|
+ free(de);
|
|
|
|
return 0;
|
|
}
|
|
--
|
|
2.50.0
|
|
|