The cap is not leaking. What you see is glue that has dried out. When it gets old and dry it can absorb moisture from the air and begin to corrode components and become conductive. You need to scrape it off carefully and replace any damaged components.