A drug addict who savagely bashed a female police officer with a brick and left her for dead in Sydney will walk free on parole.