mirror of https://github.com/polybar/polybar.git
fix(bspwm_util): Memory leak
This commit is contained in:
parent
6f2b437be3
commit
20c00936a9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue