commit | 82da01d6a32c4fbfe57155c119d4669d7faba438 | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Queru <jbq@google.com> | Wed Jun 01 14:08:04 2011 -0700 |
committer | Jean-Baptiste Queru <jbq@google.com> | Wed Jun 01 14:08:15 2011 -0700 |
tree | e699648a4eaffbafbb3e135917fac12debec7714 | |
parent | 8d58c957036835db148acc4e506633a016dc6c7e [diff] | |
parent | 7172eb7b623f4b30f5a709d639fcd3fb51cd6220 [diff] |
Merge from gingerbread Change-Id: I30902cdb19698f88a1ea57cf8c7667ef867d13a8
diff --git a/mtdutils/mtdutils.c b/mtdutils/mtdutils.c index 198f498..e4d2a60 100644 --- a/mtdutils/mtdutils.c +++ b/mtdutils/mtdutils.c
@@ -269,8 +269,8 @@ 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; }