mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fix leak
This commit is contained in:
parent
ddf2af988b
commit
df29e95cef
1 changed files with 2 additions and 0 deletions
|
|
@ -808,6 +808,8 @@ int filephy(const char* path, uint64_t size, uint64_t* physical)
|
|||
*physical = offset + FILEPHY_REAL_OFFSET;
|
||||
}
|
||||
|
||||
free(fiemap);
|
||||
|
||||
if (close(f) == -1)
|
||||
return -1;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue