]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: fix a memory leak in imap_f
authorVivek Trivedi <t.vivek@samsung.com>
Sun, 20 Dec 2015 23:54:37 +0000 (10:54 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 20 Dec 2015 23:54:37 +0000 (10:54 +1100)
commit5d3a5d81fbc3fe4a6ba7d64337da110eb2791e25
tree784310e02649a81af3cf4bc69663d57536703ed6
parentab001d6c4822f2a1a55fd30c4cce09beecb2a967
xfs_io: fix a memory leak in imap_f

add NULL check for malloc return and free allocated memory in
return path in imap_f

[dchinner: changed to error stack]

Signed-off-by: Vivek Trivedi <t.vivek@samsung.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/imap.c