mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-05 21:34:17 +01:00
Coverity: fix misc resource leak
This commit is contained in:
committed by
Carlos R. Mafra
parent
77df89396c
commit
1215680b6d
@@ -799,6 +799,7 @@ char *GetShortcutString(const char *shortcut)
|
|||||||
*k = 0;
|
*k = 0;
|
||||||
mod = wXModifierFromKey(text);
|
mod = wXModifierFromKey(text);
|
||||||
if (mod < 0) {
|
if (mod < 0) {
|
||||||
|
wfree(buffer);
|
||||||
return wstrdup("bug");
|
return wstrdup("bug");
|
||||||
}
|
}
|
||||||
lbl = wXModifierToShortcutLabel(mod);
|
lbl = wXModifierToShortcutLabel(mod);
|
||||||
|
|||||||
Reference in New Issue
Block a user