pull/140/merge
safocl 2025-01-30 09:17:27 +04:00 committed by GitHub
commit e1be770ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 8 deletions

View File

@ -1204,11 +1204,11 @@ static int fix_self_located_mft(ntfs_volume *vol)
ntfs_log_info(OK);
res = -1;
}
free(selfloc.mft0);
free(selfloc.mft1);
free(selfloc.mft2);
free(selfloc.attrlist);
}
free(selfloc.mft0);
free(selfloc.mft1);
free(selfloc.mft2);
free(selfloc.attrlist);
return (res);
}
@ -1421,10 +1421,10 @@ static int check_alternate_boot(ntfs_volume *vol)
} else {
ntfs_log_info("Error : could not read the boot sector again\n");
}
free(full_bs);
free(alt_bs);
error_exit :
free(full_bs);
free(alt_bs);
return (res);
}

View File

@ -781,7 +781,7 @@ static boolean outputmap(const char *volume, const char *dir)
char buf[256];
int fn;
char *fullname;
char *backup;
char *backup = NULL;
struct USERMAPPING *mapping;
boolean done;
boolean err;
@ -895,6 +895,8 @@ static boolean outputmap(const char *volume, const char *dir)
if (!done)
fprintf(stderr, "* Could not create mapping file \"%s\"\n",
fullname);
free(backup);
free(fullname);
return (done);
}
@ -1005,7 +1007,8 @@ static boolean sanitize(void)
group->defined = AGREED;
group->next = firstmapping;
firstmapping = group;
}
} else
free(group);
}
}
}