Call FreeCrcBuf earlier (it may do logging)

This commit is contained in:
Paul Dicker
2025-04-02 18:31:38 +02:00
committed by Stéphane Lesimple
parent c7b0f5b592
commit 3be61f4b7b

View File

@@ -718,6 +718,9 @@ void FreeClosure()
g_free(Closure->readAdaptiveErrorMsg);
#endif /* WITH_GUI_YES */
if(Closure->crcBuf)
FreeCrcBuf(Closure->crcBuf);
cond_free(Closure->cookedVersion);
cond_free(Closure->versionString);
cond_free(Closure->device);
@@ -741,9 +744,6 @@ void FreeClosure()
cond_free(Closure->dDumpDir);
cond_free(Closure->dDumpPrefix);
if(Closure->crcBuf)
FreeCrcBuf(Closure->crcBuf);
if(Closure->logString)
g_string_free(Closure->logString, TRUE);