AntFleet

Receipt · 83e79770-3

/tmp directory not cleaned up on error paths in analyze route

maintainabilitylow
repo d2246a0e·PR #1·reviewed 13 hours ago

The finding

  • app/api/admin/analyze/route.ts:22-92
`tmpDir` is created near the top of the handler but cleanup only runs in the success path. If ffprobe, ffmpeg, fetch, writeFile, or analyzeTemplateFrames throws, the catch block returns 500 without removing `/tmp/analyze-${templateId}`. On a long-running serverless instance this leaks disk and can fill /tmp (Vercel's /tmp is bounded to ~512MB).

Fix

Wrap steps 1–4 in try/finally and put the rm in `finally` so cleanup happens on all paths.

Agent attribution

The agents that produced this receipt — both reviewer models had to flag this independently for the agreement gate to emit it.

anthropic

gpt-5

92.0s · error

openai

claude-opus-4-7

136.5s · error

Total

wall-clock review time · est. inference cost

136.5s · $0.40

Sweeper

closed at SHA

still open

internal review id · 83e79770

Third-party witnesses

Everything below lives on GitHub's event log, not ours. Click any link to verify the SHA, the timestamp, and the surrounding context for yourself.

← back to all receipts