diff options
author | Tom Rini <trini@konsulko.com> | 2016-05-06 22:12:15 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-06 22:12:15 -0400 |
commit | 7b4f17bf3653ffff0d5d7b76bb8c2d8c293db4ce (patch) | |
tree | 95181e37559b4236c8af1d4d47f2fdb9f818755d /drivers/dfu | |
parent | ad7af5d7e4caf49581c7403d5a8edc0f11a5f652 (diff) | |
parent | 12ff19dbfd93abdb62b7b326fee3f5bfa659a75e (diff) | |
download | u-boot-7b4f17bf3653ffff0d5d7b76bb8c2d8c293db4ce.tar.gz |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'drivers/dfu')
-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 8f5915e49c..20dfcbbf18 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++; |