diff options
author | Doug Zongker <dougz@android.com> | 2011-01-22 01:12:03 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-22 01:12:03 +0100 |
commit | da993fcf2665102435b05d6b20a4c4e8f8bd3b8f (patch) | |
tree | 89c3abd929849bf759b60ce0f75e4d91a44df2d8 /mtdutils/mtdutils.c | |
parent | Reserve the last 16 Kbytes of /data for the crypto footer. (diff) | |
parent | Merge "Free allocated struct after freeing field" (diff) | |
download | android_bootable_recovery-da993fcf2665102435b05d6b20a4c4e8f8bd3b8f.tar android_bootable_recovery-da993fcf2665102435b05d6b20a4c4e8f8bd3b8f.tar.gz android_bootable_recovery-da993fcf2665102435b05d6b20a4c4e8f8bd3b8f.tar.bz2 android_bootable_recovery-da993fcf2665102435b05d6b20a4c4e8f8bd3b8f.tar.lz android_bootable_recovery-da993fcf2665102435b05d6b20a4c4e8f8bd3b8f.tar.xz android_bootable_recovery-da993fcf2665102435b05d6b20a4c4e8f8bd3b8f.tar.zst android_bootable_recovery-da993fcf2665102435b05d6b20a4c4e8f8bd3b8f.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; } |