Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-10-20 14:25:19 +0300
committerCampbell Barton <campbell@blender.org>2022-10-20 14:26:13 +0300
commita30128a3c1a2eb7767ec87b99a09f2893e1c5de7 (patch)
tree70105bbf3e450d29ad965bf80e720a0c2ce9f1be
parentc81bc09876f84753f3c69e024196b70a88c6cebe (diff)
Fix missing free in 8a43bfd8fd8d08438c5cc58befdf3e661aa17297
-rw-r--r--intern/ghost/intern/GHOST_SystemWayland.cpp1
1 files changed, 1 insertions, 0 deletions
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<char *>(data_buf));
CLOG_INFO(
LOG, 2, "drop_read_uris mime_receive=%s, data=%s", mime_receive.c_str(), data.c_str());