From 8e7b07bbd3cd28e02aeb5014a5e86a0e9b8f2411 Mon Sep 17 00:00:00 2001
From: John Darrington <john@darrington.wattle.id.au>
Date: Sun, 12 Aug 2012 19:51:19 +0200
Subject: [PATCH] fix some of the leaks in the AUTORECODE command

---
 src/language/stats/autorecode.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/language/stats/autorecode.c b/src/language/stats/autorecode.c
index 33cab462c4..3331d74569 100644
--- a/src/language/stats/autorecode.c
+++ b/src/language/stats/autorecode.c
@@ -322,6 +322,11 @@ cmd_autorecode (struct lexer *lexer, struct dataset *ds)
     }
   add_transformation (ds, autorecode_trns_proc, autorecode_trns_free, arc);
 
+  for (i = 0; i < n_dsts; i++)
+    free (dst_names[i]);
+  free (dst_names);
+  free (src_vars);
+
   return ok ? CMD_SUCCESS : CMD_CASCADING_FAILURE;
 
 error:
-- 
2.30.2