OSDN Git Service
(root)
/
android-x86
/
system-vold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69520d2
)
Fix memory leak of f2fs_info
author
Eric Biggers
<ebiggers@google.com>
Tue, 3 Nov 2020 22:11:01 +0000
(14:11 -0800)
committer
Eric Biggers
<ebiggers@google.com>
Tue, 3 Nov 2020 22:11:01 +0000
(14:11 -0800)
'struct f2fs_info' from system/extras/f2fs_utils is supposed to be
freed using free_f2fs_info(), not just free().
Test: see I08fc8465f7962abd698904b5466f3ed080d53953
Change-Id: If6e75e5c604b40be24538b156a37cc76f4f0d4f7
EncryptInplace.cpp
patch
|
blob
|
history
diff --git
a/EncryptInplace.cpp
b/EncryptInplace.cpp
index
4c1bb73
..
eb7d4c3
100644
(file)
--- a/
EncryptInplace.cpp
+++ b/
EncryptInplace.cpp
@@
-423,7
+423,7
@@
errout:
if (rc) LOG(ERROR) << "Failed to encrypt f2fs filesystem on " << real_blkdev;
log_progress_f2fs(0, true);
- free(f2fs_info);
+ free
_f2fs_info
(f2fs_info);
free(data.buffer);
close(data.realfd);
close(data.cryptofd);