From 20c00936a971ef695ce07907c3fbd12bc78aed52 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 25 Nov 2016 11:41:57 +0100 Subject: [PATCH] fix(bspwm_util): Memory leak --- src/utils/bspwm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/bspwm.cpp b/src/utils/bspwm.cpp index 355af18a..d4eb19ea 100644 --- a/src/utils/bspwm.cpp +++ b/src/utils/bspwm.cpp @@ -80,6 +80,7 @@ namespace bspwm_util { return BSPWM_SOCKET_PATH; snprintf(sa.sun_path, sizeof(sa.sun_path), "/tmp/bspwm%s_%i_%i-socket", host, dsp, scr); + free(host); return sa.sun_path; }