[Issue 10032] New: at_add returns a free'd pointer on error