dm: spi: Return 0 if driver does not implement ops->cs_info
[oweals/u-boot.git] / lib / fdtdec_test.c
index 1f4f27054057f7a547fafe7b8843db67925c14fb..e8bfd1fb1ec3c2bdeda6f2e588cfdbf6b525196f 100644 (file)
@@ -138,6 +138,7 @@ static int run_test(const char *aliases, const char *nodes, const char *expect)
        }
 
        printf("pass\n");
+       free(blob);
        return 0;
 }
 
@@ -292,6 +293,7 @@ static int check_carveout(void)
        CHECKVAL(make_fdt_carveout(fdt, FDT_SIZE, 2, 2), 0);
        CHECKOK(check_fdt_carveout(fdt, 2, 2));
 
+       free(fdt);
        return 0;
 }