Skip to content

Commit c2c6959

Browse files
Theodore Ts'otytso
Theodore Ts'o
authored andcommitted
test_extents: fix a possible memory leak
Addresses-Coverity-Bug: #1049185 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent ece2d58 commit c2c6959

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resize/test_extent.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ void do_test(FILE *in, FILE *out)
109109
} else
110110
fputs("# Syntax error\n", out);
111111
}
112+
if (extent)
113+
ext2fs_free_extent_table(extent);
112114
}
113115

114116
#ifdef __GNUC__

0 commit comments

Comments
 (0)