1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-01 21:45:45 +01:00

WPrefs: Fix memory leak in Expert tab

As reported by Coverity (CID #331553), we leak the allocated string
returned by 'WMGetTextFieldText'

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2021-05-14 20:24:51 +02:00
committed by Carlos R. Mafra
parent 4559cbbccc
commit 7c50721747

View File

@@ -315,6 +315,7 @@ static void storeDefaults(_Panel *panel)
text = WMGetTextFieldText(panel->textfield[i]);
value = atoi(text);
wfree(text);
SetIntegerForKey(value, expert_options[i].op_name);
break;