Anal gland issues are the most common cause of your dog leaking brown discharge, especially if it has a foul odor. If your dog's anal glands don't get expelled during bowel movements, they must be expressed manually.