Fix a small memory leak when failing to spawn a new thread.
Attach a file by drag & drop or click to upload