From: John Darrington Date: Wed, 5 Oct 2011 06:10:55 +0000 (+0200) Subject: Fix crash on parseing invalid GLM syntax X-Git-Tag: v0.7.9~131 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f06878e2a9a111f8415ce4ad839b3fe68b85ec;p=pspp-builds.git Fix crash on parseing invalid GLM syntax --- diff --git a/src/math/interaction.c b/src/math/interaction.c index d81eba50..746cc17f 100644 --- a/src/math/interaction.c +++ b/src/math/interaction.c @@ -60,6 +60,9 @@ interaction_create (const struct variable *v) void interaction_destroy (struct interaction *i) { + if (NULL == i) + return; + free (i->vars); free (i); }