diff options
author | Stefano Babic <sbabic@denx.de> | 2016-05-17 17:51:44 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-05-17 17:51:44 +0200 |
commit | 52b1eaf93d6b55e1467f97b8eefdc2f8b6031c43 (patch) | |
tree | 73357539a8382b406c29b1826dc17012f267f2cb /drivers/dfu/dfu.c | |
parent | aaeadd3f7b248aeb1c72c36183ab9c6e77da6ce2 (diff) | |
parent | aeaec0e682f45b9e0c62c522fafea353931f73ed (diff) | |
download | u-boot-imx-52b1eaf93d6b55e1467f97b8eefdc2f8b6031c43.zip u-boot-imx-52b1eaf93d6b55e1467f97b8eefdc2f8b6031c43.tar.gz u-boot-imx-52b1eaf93d6b55e1467f97b8eefdc2f8b6031c43.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot
Diffstat (limited to 'drivers/dfu/dfu.c')
-rw-r--r-- | drivers/dfu/dfu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 8f5915e..20dfcbb 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -468,8 +468,10 @@ int dfu_config_entities(char *env, char *interface, char *devstr) s = strsep(&env, ";"); ret = dfu_fill_entity(&dfu[i], s, alt_num_cnt, interface, devstr); - if (ret) + if (ret) { + free(dfu); return -1; + } list_add_tail(&dfu[i].list, &dfu_list); alt_num_cnt++; |