]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid a possible memory leak.
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 22 Sep 2015 11:06:42 +0000 (11:06 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 22 Sep 2015 11:06:42 +0000 (11:06 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15673

memcheck/tests/vbit-test/main.c

index c32b50c407a2cc58a5bd0e32739e1f1884cbda37..45f431bb25c97f0fe2c7873f446467ce6f9ab094 100644 (file)
@@ -136,14 +136,14 @@ main(int argc, char *argv[])
       const irop_t *op = get_irop(opkind);
       if (op == NULL) continue;
 
-      test_data_t *data = new_test_data(op);
-
       if (op->undef_kind == UNDEF_UNKNOWN) {
          fprintf(stderr, "...skipping %s; unknown undef propagation\n",
                  op->name);
          continue;
       }
 
+      test_data_t *data = new_test_data(op);
+
       if (verbose > 1) printf("Testing operator %s\n", op->name);
 
       IRICB iricb = new_iricb(op, data);