From 3d39f7aa5f14da2e7aa895f916d48e504e5a654e Mon Sep 17 00:00:00 2001 From: Scoopta Date: Wed, 29 Jan 2020 21:51:25 -0800 Subject: [PATCH] Fixed memory leak --- src/wofi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wofi.c b/src/wofi.c index 2a3ea55..15d99b2 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -569,6 +569,7 @@ void wofi_remove_cache(struct mode* mode, const char* _cmd) { fclose(file); } free(cache_path); + free(cmd); } struct wl_list* wofi_read_cache(struct mode* mode) {