projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix memory leak in rank_sorted_casefile().
[pspp]
/
src
/
math
/
levene.c
diff --git
a/src/math/levene.c
b/src/math/levene.c
index 105fc09303e5cce49bd797f1c9509a3278e77408..920440103b4d5b33bcb6721746b1048591f61693 100644
(file)
--- a/
src/math/levene.c
+++ b/
src/math/levene.c
@@
-21,17
+21,17
@@
#include <config.h>
#include "levene.h"
#include <config.h>
#include "levene.h"
-#include
"message.h"
-#include
"case.h"
-#include
"casefile.h"
-#include
"dictionary.h"
+#include
<libpspp/message.h>
+#include
<data/case.h>
+#include
<data/casefile.h>
+#include
<data/dictionary.h>
#include "group-proc.h"
#include "group-proc.h"
-#include
"hash.h"
-#include
"str.h"
-#include
"variable.h"
-#include
"procedure.h"
-#include
"alloc.h"
-#include
"misc.h"
+#include
<libpspp/hash.h>
+#include
<libpspp/str.h>
+#include
<data/variable.h>
+#include
<data/procedure.h>
+#include
<libpspp/alloc.h>
+#include
<libpspp/misc.h>
#include "group.h"
#include <math.h>
#include "group.h"
#include <math.h>
@@
-187,11
+187,11
@@
static int
levene_calc (const struct ccase *c, void *_l)
{
size_t i;
levene_calc (const struct ccase *c, void *_l)
{
size_t i;
-
int warn = 0
;
+
bool warn = false
;
struct levene_info *l = (struct levene_info *) _l;
const union value *gv = case_data (c, l->v_indep->fv);
struct group_statistics key;
struct levene_info *l = (struct levene_info *) _l;
const union value *gv = case_data (c, l->v_indep->fv);
struct group_statistics key;
- double weight = dict_get_case_weight
(default_dict,c,
&warn);
+ double weight = dict_get_case_weight
(default_dict, c,
&warn);
/* Skip the entire case if /MISSING=LISTWISE is set */
if ( l->missing == LEV_LISTWISE )
/* Skip the entire case if /MISSING=LISTWISE is set */
if ( l->missing == LEV_LISTWISE )
@@
-291,11
+291,11
@@
static int
levene2_calc (const struct ccase *c, void *_l)
{
size_t i;
levene2_calc (const struct ccase *c, void *_l)
{
size_t i;
-
int warn = 0
;
+
bool warn = false
;
struct levene_info *l = (struct levene_info *) _l;
struct levene_info *l = (struct levene_info *) _l;
- double weight = dict_get_case_weight
(default_dict,c,
&warn);
+ double weight = dict_get_case_weight
(default_dict, c,
&warn);
const union value *gv = case_data (c, l->v_indep->fv);
struct group_statistics key;
const union value *gv = case_data (c, l->v_indep->fv);
struct group_statistics key;