From 290077732ca206c99fe3d83697b38ff53af83361 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 21 Sep 2008 10:42:15 +0800 Subject: [PATCH] Avoid crash when recovering from syntax error in RELIABILITY. --- src/language/stats/reliability.q | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/language/stats/reliability.q b/src/language/stats/reliability.q index 0222a3f3..8384bb35 100644 --- a/src/language/stats/reliability.q +++ b/src/language/stats/reliability.q @@ -262,8 +262,11 @@ cmd_reliability (struct lexer *lexer, struct dataset *ds) free (c->items); moments1_destroy (c->total); - for (x = 0 ; x < c->n_items; ++x) - moments1_destroy (c->m[x]); + + if ( c->m) + for (x = 0 ; x < c->n_items; ++x) + moments1_destroy (c->m[x]); + free (c->m); } -- 2.30.2