in reply to Attempt to free unrefed scalar

In short it means that some code that has access to the C interface of the perl interpreter has a refcounting bug in it (this is one of the most common bugs in perl extensions).

Usually that means you're using some kind of buggy XS extension/module, but sometimes it's a real bug in perl itself.