~sircmpwn/public-inbox

[PATCH fdicons 2/2] Fix minimal_path memory leak

Tom Lebreux
Details
Message ID
<20200221043536.1385526-2-tomlebreux@cock.li>
DKIM signature
pass
Download raw message
Patch: +1 -0
---
 src/lookup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lookup.c b/src/lookup.c
index 946e0811ce14..a50033e6b11f 100644
--- a/src/lookup.c
+++ b/src/lookup.c
@@ -122,6 +122,7 @@ fd_icon_theme_dir_get_icon_criteria(
		if (distance < *minimal_size) {
			*minimal_dir = dir;
			*minimal_size = distance;
			free(*minimal_path);
			*minimal_path = strdup(path);
			*minimal_name = criteria->names[i];
		}
-- 
2.25.0