jordansissel / xdotool

fake keyboard/mouse input, window management, and more
Other
3.26k stars 319 forks source link

memory leakage issues with xdotool & libxdo-dev #285

Open rmisko11 opened 4 years ago

rmisko11 commented 4 years ago

Using libxdo-dev with valgrind I get lots of errors and memory leakage even xdo_t *xdo = xdo_new(nullptr); and xdo_free(xdo); both xdotool and libxdo-dev exit with 72 bytes used. Using search in libxdo-dev program exits with 1947 errors detected by Valgrind supposedly related to Conditional jump or move depends on uninitialised value(s).

Package: libxdo-dev Version: 1:3.20160805.1-3 xdotool version 3.+20200602.1

rmisko11 commented 4 years ago

In addition when using libxdo-dev with retval = xdo_search_windows(xdo, &search, &list, &nwindows); I get a segmentation error if I use std::string anywhere.