Fix memory leak in data_in
[pspp] / src / language / stats / aggregate.c
index b54ebf6376bd1500c3f0e616703f84e2c07a1026..42f330d5d21a64b141a963b82ce1bbcae49a7c3e 100644 (file)
@@ -391,7 +391,8 @@ parse_aggregate_functions (struct lexer *lexer, const struct dictionary *dict,
          size_t n_dest_prev = n_dest;
 
          if (!parse_DATA_LIST_vars (lexer, &dest, &n_dest,
-                                     PV_APPEND | PV_SINGLE | PV_NO_SCRATCH))
+                                     (PV_APPEND | PV_SINGLE | PV_NO_SCRATCH
+                                      | PV_NO_DUPLICATE)))
            goto error;
 
          /* Assign empty labels. */