X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=yaffs_guts.c;h=3e33916b16045824f25cde00d2a0b3ea329a926c;hb=42909262aa6077a60cf18dac024fd21df3b4b18a;hp=a2b4cdf696114a2d89ab639c1ab0f35ee126221b;hpb=eea0b87b01437ed6db77e796c85d496ed94b3570;p=yaffs2.git diff --git a/yaffs_guts.c b/yaffs_guts.c index a2b4cdf..3e33916 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -3017,8 +3017,10 @@ static void yaffs_check_obj_details_loaded(struct yaffs_obj *in) result = yaffs_rd_chunk_tags_nand(dev, in->hdr_chunk, buf, &tags); - if (result == YAFFS_FAIL) + if (result == YAFFS_FAIL) { + yaffs_release_temp_buffer(dev, buf); return; + } oh = (struct yaffs_obj_hdr *)buf; @@ -3201,7 +3203,6 @@ int yaffs_update_oh(struct yaffs_obj *in, const YCHAR *name, int force, bi->has_shrink_hdr = 1; } - return new_chunk_id; }