fix(bspwm_util): Memory leak

This commit is contained in:
Michael Carlberg 2016-11-25 11:41:57 +01:00
parent 6f2b437be3
commit 20c00936a9
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}