A recent change to xlog_print_trans_efi() led to a leaked
"src_f" on this error return.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
uint src_len,
int continued)
{
- xfs_efi_log_format_t *src_f, *f;
+ xfs_efi_log_format_t *src_f, *f = NULL;
uint dst_len;
xfs_extent_t *ex;
int i;
if (continued && src_len < core_size) {
printf(_("EFI: Not enough data to decode further\n"));
- return 1;
+ error = 1;
+ goto error;
}
if ((f = (xfs_efi_log_format_t *)malloc(dst_len)) == NULL) {