ref: 321eba33ebbadfe61ece480f877260788c6cf8b8
parent: b130ba0ea69f7376f6f201e5361e86dfdc06041f
author: Kaho Ng <ngkaho1234@gmail.com>
date: Tue Jun 28 08:03:07 EDT 2016
ext4_journal: fix memory leakage when reallocating a revoked block
--- a/src/ext4_journal.c
+++ b/src/ext4_journal.c
@@ -1640,9 +1640,11 @@
rec = RB_FIND(jbd_revoke_tree,
&trans->revoke_root,
&tmp_rec);
- if (rec)
+ if (rec) {
RB_REMOVE(jbd_revoke_tree, &trans->revoke_root,
rec);
+ free(rec);
+ }
return EOK;
}