projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent test failure when non-English language selected
[pspp]
/
src
/
language
/
stats
/
correlations.q
diff --git
a/src/language/stats/correlations.q
b/src/language/stats/correlations.q
index 540024dbd1f6ee15c98a9deca208b5060b450978..5d543098ec986b8737a8c0cd30e198d7cdea0ce9 100644
(file)
--- a/
src/language/stats/correlations.q
+++ b/
src/language/stats/correlations.q
@@
-77,9
+77,13
@@
internal_cmd_correlations (struct lexer *lexer, struct dataset *ds)
matrix_file = NULL;
if (!parse_correlations (lexer, ds, &cmd, NULL))
matrix_file = NULL;
if (!parse_correlations (lexer, ds, &cmd, NULL))
- return CMD_FAILURE;
+ {
+ fh_unref (matrix_file);
+ return CMD_FAILURE;
+ }
free_correlations (&cmd);
free_correlations (&cmd);
+ fh_unref (matrix_file);
return CMD_SUCCESS;
}
return CMD_SUCCESS;
}
@@
-141,6
+145,7
@@
cor_custom_matrix (struct lexer *lexer, struct dataset *ds UNUSED, struct cmd_co
matrix_file = NULL;
else
{
matrix_file = NULL;
else
{
+ fh_unref (matrix_file);
matrix_file = fh_parse (lexer, FH_REF_FILE);
if (matrix_file == NULL)
return 0;
matrix_file = fh_parse (lexer, FH_REF_FILE);
if (matrix_file == NULL)
return 0;