src/data/format.c (fmt_affix_free): Fix memory leak
[pspp] / src / data / format.c
index 74ee0e2e2ab3379222868ddce40aa1bf4fc795d6..d22398601bfa8b6e062cf72b8750accb17948b81 100644 (file)
@@ -1156,7 +1156,7 @@ fmt_affix_clone (const struct fmt_affix *old)
 static void
 fmt_affix_free (struct fmt_affix *affix)
 {
-  if (affix->s[0])
+  if (affix->s)
     free (affix->s);
 }