diff options
| author | YaoBing Xiao <xiaoyaobing@uniontech.com> | 2025-06-05 13:46:06 +0800 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-06-08 21:10:25 +0200 |
| commit | f4a33dcab56c595bc8f923f4b8653814c4da4ed5 (patch) | |
| tree | 3dc67f79a539cf604c9e863890228d71b03c62fe /include | |
| parent | 8174ff2fe2b7dea3bf9f0830c7d745c7e199d894 (diff) | |
server: fix socket path memory leak
The socket path allocated with strdup() in server_init() was
not being freed in server_fini().
Remove const qualifier and add proper cleanup.
(cherry picked from commit 9fb9e9f7d555ae7504b8ae53250020797d70e887)
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/server.h b/include/sway/server.h index e7d7094f..1cb72e77 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -27,7 +27,7 @@ struct sway_session_lock { struct sway_server { struct wl_display *wl_display; struct wl_event_loop *wl_event_loop; - const char *socket; + char *socket; struct wlr_backend *backend; struct wlr_session *session; |
