projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a5ce2d
)
Fix memory leak
author
John Darrington
<john@cellform.com>
Sun, 4 Jun 2023 15:30:15 +0000
(17:30 +0200)
committer
John Darrington
<john@cellform.com>
Sun, 4 Jun 2023 15:30:15 +0000
(17:30 +0200)
src/ui/gui/psppire-dialog-action-means.c
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-dialog-action-means.c
b/src/ui/gui/psppire-dialog-action-means.c
index ba74e0c2a061504b4b3bd83e04ebcfb7e9f0eca6..3dacedd6ed1c1010051b9fc86bf8addc69622be4 100644
(file)
--- a/
src/ui/gui/psppire-dialog-action-means.c
+++ b/
src/ui/gui/psppire-dialog-action-means.c
@@
-98,9
+98,14
@@
static gboolean numeric_variable (GtkWidget *src, GtkWidget *dest)
for (int i = 0; i < n_vars; i++)
{
if (! var_is_numeric (vars[i]))
- return FALSE;
+ {
+ free (vars);
+ return FALSE;
+ }
}
+ free (vars);
+
return TRUE;
}