Commit 902078c
committed
fix: avoid nil dereference in symbol uploader when temp file creation fails
When os.Create fails in attemptUpload, f is nil. The error handler
called os.Remove(f.Name()), which panics with a nil pointer
dereference. Remove the call — there is no file to clean up when
creation fails, and the defer on the success path already handles it.1 parent 358d3ed commit 902078c
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | 278 | | |
280 | 279 | | |
281 | 280 | | |
| |||
0 commit comments