Fix missing free in 8a43bfd8fd

This commit is contained in:
Campbell Barton 2022-10-20 22:25:19 +11:00
parent c81bc09876
commit a30128a3c1
1 changed files with 1 additions and 0 deletions

View File

@ -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());