diff options
| author | Hongbo Li <[email protected]> | 2024-09-24 01:41:46 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-09-28 01:46:34 +0000 |
| commit | dc5bfdf8eaed76cf527c9477952c535f75e0e499 (patch) | |
| tree | 64891dd7cd5ecc37f1414ac39861fd7c00619297 /rust/helpers/helpers.c | |
| parent | bcachefs: fast exit when darray_make_room failed (diff) | |
| download | kernel-dc5bfdf8eaed76cf527c9477952c535f75e0e499.tar.gz kernel-dc5bfdf8eaed76cf527c9477952c535f75e0e499.zip | |
bcachefs: fix the memory leak in exception case
The pointer clean points the memory allocated by kmemdup, when the
return value of bch2_sb_clean_validate_late is not zero. The memory
pointed by clean is leaked. So we should free it in this case.
Fixes: a37ad1a3aba9 ("bcachefs: sb-clean.c")
Signed-off-by: Hongbo Li <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
