Fix memory leaks in lua integration

This commit is contained in:
Pasi Kallinen
2019-11-20 20:09:16 +02:00
parent 786a90415e
commit 791657f4e6
2 changed files with 22 additions and 6 deletions

View File

@@ -93,6 +93,7 @@ lua_State *L;
sel->hei = tmp->hei;
sel->map = dupstr(tmp->map);
selection_free(tmp);
free(tmp);
return sel;
}