diff --git a/src/handler/chibisafe.go b/src/handler/chibisafe.go index 3b4014b..1c039a4 100644 --- a/src/handler/chibisafe.go +++ b/src/handler/chibisafe.go @@ -107,6 +107,9 @@ func NetworkStoragePut(URL string, ContentType string, filepath string) ([]byte, // Set appropriate headers for the file req.Header.Set("Content-Type", ContentType) + // clear memory for others process to use + defer buffer.Reset() + // Send the request resp, err := client.Do(req) if err != nil {