projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix memory leak upon failure to create matrix reader
[pspp]
/
src
/
math
/
levene.c
diff --git
a/src/math/levene.c
b/src/math/levene.c
index 5785623a6ab0fd519d2a7d8105833f2528c71b8d..a005c9436091ecd58b992b936be5e74312a405bd 100644
(file)
--- a/
src/math/levene.c
+++ b/
src/math/levene.c
@@
-118,7
+118,7
@@
find_group (const struct levene *nl, const union value *target)
struct levene *
levene_create (int indep_width, const union value *cutpoint)
{
struct levene *
levene_create (int indep_width, const union value *cutpoint)
{
- struct levene *nl =
xzalloc (sizeof *nl
);
+ struct levene *nl =
XZALLOC (struct levene
);
hmap_init (&nl->hmap);
hmap_init (&nl->hmap);
@@
-146,7
+146,7
@@
levene_pass_one (struct levene *nl, double value, double weight, const union val
if (NULL == lev)
{
if (NULL == lev)
{
- struct lev *l =
xzalloc (sizeof *l
);
+ struct lev *l =
XZALLOC (struct lev
);
value_clone (&l->group, gv, nl->gvw);
hmap_insert (&nl->hmap, &l->node, nl->hash (nl, &l->group));
lev = l;
value_clone (&l->group, gv, nl->gvw);
hmap_insert (&nl->hmap, &l->node, nl->hash (nl, &l->group));
lev = l;