mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-30 18:32:34 +01:00
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
80e8dd43f7
commit
7185af15cf
@@ -451,7 +451,7 @@ static void find_and_write(const char *group, char *list[][2], int this_is_termi
|
||||
WMAddToPLArray(L2Menu, L3Menu);
|
||||
wfree(t);
|
||||
}
|
||||
wfree(argv);
|
||||
wtokenfree(argv, argc);
|
||||
i++;
|
||||
}
|
||||
if (L2Menu)
|
||||
|
||||
Reference in New Issue
Block a user