On Fri, Aug 28, 2015 at 12:38:16AM +0900, Byongho Lee wrote: > In btrfs-convert main(), strdup() allocates memory to fslabel but that > memory is not freed. We could fix it by adding free() calls to every > return point, but that would make the code messy because there are > several return paths. > So I fix it by changing the code using strdup() with local array and > strncpy(). > > And btrfs-convert main() guarantees that string length of fslabel is not > to exceed 'BTRFS_LABEL_SIZE', so it's enough to use strcpy() instead of > strncpy() to copy fslabel in do_convert(). > > Signed-off-by: Byongho Lee <bhlee.kernel@xxxxxxxxx> Applied, 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
