Use wtokenfree whenever there is wtokensplit
commit7185af15cf55f331c3f86e2465c93155b1c6059e
authorDavid Maciejak <david.maciejak@gmail.com>
Sat, 4 Mar 2023 03:16:17 +0000 (4 11:16 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 5 Mar 2023 00:16:44 +0000 (5 00:16 +0000)
tree77615aba59b7a5fdec4e917fb9c00d90c636999c
parent80e8dd43f7685240a9e484de27489313a8299222
Use wtokenfree whenever there is wtokensplit

Whenever wtokensplit is used to split into argv/argc, it's better to
use the built-in function wtokenfree() as a wfree call only on argv
is not freeing the memory properly.
src/main.c
src/session.c
util/wmgenmenu.c