Fix buildlight command memory leak.