Fix segfault (should free act.buf not act.name, because the latter