Private
Public Access
2
0

intel_galileo_rev_d.c: Fixed missing goto leaving board unfreed in error case

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-09-08 15:00:40 +01:00
parent 1937473c01
commit 17eb7a791a

View File

@@ -162,7 +162,7 @@ mraa_intel_galileo_rev_d()
b->adv_func = (mraa_adv_func_t*) calloc(1, sizeof(mraa_adv_func_t));
if (b->adv_func == NULL) {
return NULL;
goto error;
}
b->adv_func->gpio_mmap_setup = &mraa_intel_galileo_g1_mmap_setup;
b->adv_func->spi_lsbmode_replace = &mraa_intel_galileo_g1_spi_lsbmode_replace;