10:25 AM PT -- Heather is out of jail and, sources familiar with the situation tell TMZ, she is on her way to a hospital where she will voluntarily check herself in for treatment of alcohol abuse as well as mental health issues.

9:47 AM PT -- Heather posted bail and was released at 9:10 AM.

7:20 AM PT -- Law enforcement sources tell TMZ ... Sunday's arrest was the second time deputies went to Heather's home that day. We're told they were there around 6 PM for another disturbance, but determined no crime had occurred.

Heather Locklear was arrested Sunday night for battery on a police officer ... and this is the second time.

Locklear was taken into custody at her home shortly before midnight and booked for 2 counts of misdemeanor battery upon an officer and emergency personnel.

Play video content JUNE 2018 TMZ.com

The original 911 call was for a disturbance. Law enforcement sources say she was heavily intoxicated when a family member called. Heather, who we're told was extremely agitated, punched a responding deputy who was trying to separate Heather from members of her family.

Paramedics arrived and, while putting her on the gurney, she kicked an EMT.

Heather was taken to a hospital to get checked out and then was taken to jail where she was booked. She's being held on $20,000 bail.