]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_logprint: fix leak in error path of xlog_print_record()
authorEric Sandeen <sandeen@redhat.com>
Mon, 14 Apr 2014 06:12:43 +0000 (16:12 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 06:12:43 +0000 (16:12 +1000)
commit04536baecea312c58305452c5cc600eca44fd847
treea8feedd966d87b642d69b02649fdc6a0e778123d
parentf6a8b88b5d00289268b5c732d6716c58194fee8f
xfs_logprint: fix leak in error path of xlog_print_record()

In 2 error paths we returned without freeing the allocated buf.
Collapse them into a compound test & free buf on the way out.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
logprint/log_misc.c