hi
In the end part of “set_extent_bit”,I found when err occurs ,there is no operate to free "prealloc" which have been allocated in "alloc_extent_state_atomic"
this may lead a menory leak when "set_state_bits" failed.
err = set_state_bits(tree, prealloc, &bits);
if (err) {
prealloc = NULL;
goto out; // this direct will do nothing because prealloc=NULL.
}
wish your reply.
thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html