mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 00:50:34 +02:00
Avoid memory leak on error path in constructMenu.
This commit is contained in:
1 parent
753f44c4b7
commit
e6e3e1aa49
1 file changed
+2
@@ -588,6 +588,8 @@ static void constructMenu(WMenu * menu, WMenuEntry * entry)
|
||||
separateCommand((char *)entry->clientdata, &path, &cmd);
|
||||
if (path == NULL || *path == NULL || **path == 0) {
|
||||
wwarning(_("invalid OPEN_MENU specification: %s"), (char *)entry->clientdata);
|
||||
if (cmd)
|
||||
wfree(cmd);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user