diff --git a/response.go b/response.go index 473797d..97b0113 100644 --- a/response.go +++ b/response.go @@ -243,6 +243,7 @@ func (r *Response) AttachmentData(dataType AttachmentType, filename string, file if err != nil { return err } + defer resp.Body.Close() return checkFacebookError(resp.Body) }