From a24efec61f020b7a693f14d45d09fa331aee62e7 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 29 Nov 2014 16:35:31 +0100 Subject: [PATCH] util: use wfree instead of free for consistency The memory was allocated with wmalloc, so for consistency it should be freed using wfree. This could be a problem if the user compiled with support for Boehm GC, or if we later decide to add support for other malloc libraries. Signed-off-by: Christophe CURIS --- util/getstyle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/getstyle.c b/util/getstyle.c index 2b7edb9d..da211acb 100644 --- a/util/getstyle.c +++ b/util/getstyle.c @@ -175,7 +175,7 @@ static void findCopyFile(const char *dir, const char *file) return; } wcopy_file(dir, fullPath, fullPath); - free(fullPath); + wfree(fullPath); } #define THEME_SUBPATH "/Library/WindowMaker/Themes/"