Fix memory leak in error path of RECODE
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 26 May 2013 05:11:08 +0000 (07:11 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 26 May 2013 05:11:08 +0000 (07:11 +0200)
src/language/xforms/recode.c

index 1aebe344696a066635c0f5dd2cd72e0f6bdf21a1..a1c2f7a4493a9413fff250e8d2bddfda488ded48 100644 (file)
@@ -160,6 +160,7 @@ cmd_recode (struct lexer *lexer, struct dataset *ds)
        {
          if ( ! enlarge_dst_widths (trns))
            {
+             recode_trns_free (trns);
              return CMD_FAILURE;
            }
        }