mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Reset global zero buffer with raid_zero(0) in raid_selftest cleanup
This commit is contained in:
parent
eba07d2173
commit
306f847689
2 changed files with 10 additions and 0 deletions
|
|
@ -779,6 +779,12 @@ int raid_selftest(void)
|
|||
ret = 0;
|
||||
|
||||
bail:
|
||||
/*
|
||||
* Reset the global zero buffer so that it does not point to
|
||||
* the deallocated memory.
|
||||
*/
|
||||
raid_zero(0);
|
||||
|
||||
free(v);
|
||||
free(v_alloc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue