Skip to content

fix: resolve PDF memory leak (#17) and add missing DICOM temp_dir copy (#40)#52

Open
Aarshpatel12 wants to merge 1 commit intoOSIPI:mainfrom
Aarshpatel12:fix-issue-17
Open

fix: resolve PDF memory leak (#17) and add missing DICOM temp_dir copy (#40)#52
Aarshpatel12 wants to merge 1 commit intoOSIPI:mainfrom
Aarshpatel12:fix-issue-17

Conversation

@Aarshpatel12
Copy link

Hi mentors! 👋

This PR fixes two separate bugs at once:

  1. PDF Memory Leak (Fixes Temporary PDF file created with delete=False is never cleaned up #17): Added a background task to delete the PDF after the user downloads it, saving server space.
  2. DICOM copy bug (Fixes DICOM converter never copies files to temp_dir — dcm2niix subprocess is never called #40): Added shutil.copy so the files actually go into the temporary folder to be converted.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant