File koffice-xsltproc-reset.patch of Package koffice
diff -Naru koffice-1.6.3_orig/filters/xsltfilter/import/xsltimportdia.cc koffice-1.6.3/filters/xsltfilter/import/xsltimportdia.cc --- koffice-1.6.3_orig/filters/xsltfilter/import/xsltimportdia.cc 2007-05-31 06:39:34.000000000 +0900 +++ koffice-1.6.3/filters/xsltfilter/import/xsltimportdia.cc 2025-07-02 12:34:38.117302704 +0900 @@ -250,9 +250,11 @@ /* Save the temp file in the store */ tempFile->open(IO_ReadOnly); + tempFile->reset(); _out->write(tempFile->readAll()); - delete tempFile; + /* tempFile must not be deleted because it causes double free at temp.close(). */ + // delete tempFile; delete xsltproc; _out->close();