mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-30 09:58:55 +02:00
Corrected a failure (in the code for many a decade) to properly
clean up memory after running "ext2spice". There are apparently still memory leaks somewhere, difficult to diagnose with valgrind, but this fix removes the most substantial leakage and allows "ext2spice" to be run continuously, at least for a while.
This commit is contained in:
@@ -162,6 +162,12 @@ EFDone()
|
||||
}
|
||||
HashKill(&efDevParamTable);
|
||||
|
||||
HashStartSearch(&hs);
|
||||
while (he = HashNext(&efFreeHashTable, &hs))
|
||||
{
|
||||
/* Keys of this table are entries to be free'd */
|
||||
freeMagic(he->h_key.h_ptr);
|
||||
}
|
||||
HashKill(&efFreeHashTable);
|
||||
|
||||
/* Final cleanup */
|
||||
|
||||
Reference in New Issue
Block a user