Skip to content

fix: add missing buffer cleanup in watermark.py and rotate_flip.py (#353)#360

Open
Mohanapriya-sparks wants to merge 5 commits into
Durgeshwar-AI:mainfrom
Mohanapriya-sparks:main
Open

fix: add missing buffer cleanup in watermark.py and rotate_flip.py (#353)#360
Mohanapriya-sparks wants to merge 5 commits into
Durgeshwar-AI:mainfrom
Mohanapriya-sparks:main

Conversation

@Mohanapriya-sparks

Copy link
Copy Markdown
Contributor

Fixes #353

Changes Made:

  • Added buffer cleanup (output.close()) in watermark.py
  • Added buffer cleanup (output.close()) in rotate_flip.py
  • Added image cleanup (img_copy.close()) in rotate_flip.py
  • Added finally blocks to ensure cleanup always happens

Files Changed:

  • backend/blueprints/watermark.py
  • backend/blueprints/rotate_flip.py

Expected Outcome:

Memory usage remains stable after repeated watermark and rotate/flip operations.

GSSoC'26

Contributing under GirlScript Summer of Code 2026

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@Mohanapriya-sparks is attempting to deploy a commit to the Durgeshwar's projects Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: add missing buffer cleanup in watermark.py and rotate_flip.py

1 participant