diff options
author | Doug Zongker <dougz@android.com> | 2011-01-22 01:15:02 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-22 01:15:02 +0100 |
commit | 80abd51dbcf5869d3ef4ddfc88f538c42697c39e (patch) | |
tree | 071369119b635322d8f3973a0b84b5dd89b958aa /mtdutils/mtdutils.c | |
parent | Merge "remove encrypted filesystem code from recovery" (diff) | |
parent | am 8d58c957: Merge "Free allocated struct after freeing field" (diff) | |
download | android_bootable_recovery-80abd51dbcf5869d3ef4ddfc88f538c42697c39e.tar android_bootable_recovery-80abd51dbcf5869d3ef4ddfc88f538c42697c39e.tar.gz android_bootable_recovery-80abd51dbcf5869d3ef4ddfc88f538c42697c39e.tar.bz2 android_bootable_recovery-80abd51dbcf5869d3ef4ddfc88f538c42697c39e.tar.lz android_bootable_recovery-80abd51dbcf5869d3ef4ddfc88f538c42697c39e.tar.xz android_bootable_recovery-80abd51dbcf5869d3ef4ddfc88f538c42697c39e.tar.zst android_bootable_recovery-80abd51dbcf5869d3ef4ddfc88f538c42697c39e.zip |
Diffstat (limited to 'mtdutils/mtdutils.c')
-rw-r--r-- | mtdutils/mtdutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mtdutils/mtdutils.c b/mtdutils/mtdutils.c index 198f4989d..e4d2a6064 100644 --- a/mtdutils/mtdutils.c +++ b/mtdutils/mtdutils.c @@ -269,8 +269,8 @@ MtdReadContext *mtd_read_partition(const MtdPartition *partition) sprintf(mtddevname, "/dev/mtd/mtd%d", partition->device_index); ctx->fd = open(mtddevname, O_RDONLY); if (ctx->fd < 0) { - free(ctx); free(ctx->buffer); + free(ctx); return NULL; } |