From a30128a3c1a2eb7767ec87b99a09f2893e1c5de7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 20 Oct 2022 22:25:19 +1100 Subject: Fix missing free in 8a43bfd8fd8d08438c5cc58befdf3e661aa17297 --- intern/ghost/intern/GHOST_SystemWayland.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp index 42bfc6aa1e7..264476f00bc 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cpp +++ b/intern/ghost/intern/GHOST_SystemWayland.cpp @@ -1695,6 +1695,7 @@ static void data_device_handle_drop(void *data, struct wl_data_device * /*wl_dat size_t data_buf_len = 0; const char *data_buf = read_pipe(data_offer, mime_receive, nullptr, &data_buf_len); std::string data = data_buf ? std::string(data_buf, data_buf_len) : ""; + free(const_cast(data_buf)); CLOG_INFO( LOG, 2, "drop_read_uris mime_receive=%s, data=%s", mime_receive.c_str(), data.c_str()); -- cgit v1.2.3