summaryrefslogtreecommitdiffstats
path: root/mtdutils
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-01-22 01:12:03 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2011-01-22 01:12:03 +0100
commitda993fcf2665102435b05d6b20a4c4e8f8bd3b8f (patch)
tree89c3abd929849bf759b60ce0f75e4d91a44df2d8 /mtdutils
parentReserve the last 16 Kbytes of /data for the crypto footer. (diff)
parentMerge "Free allocated struct after freeing field" (diff)
downloadandroid_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')
-rw-r--r--mtdutils/mtdutils.c2
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;
}