v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
657 stars 58 forks source link

free(): double free detected in tcache 2 #161

Closed darkhz closed 2 years ago

darkhz commented 2 years ago

A double free is triggered when invoking yad with the following sequence of command and keystrokes (text in between < and > should be interpreted as keystrokes)

yad --notification --listen <Enter>
action: <Enter>
action  <Enter>
action: <Enter>

The output suddenly returned is: free(): double free detected in tcache 2

and yad is closed with a SIGABRT.

The issue seems to point to this line. A possible solution could be to invoke g_free only after a value has been found.

darkhz commented 2 years ago

cc @v1cont

v1cont commented 2 years ago

though i cannot reproduce it you are right, such behavior is possible. please check de594b6

darkhz commented 2 years ago

Yes, this issue is fixed with the commit. Thank you.