Fixed memory leak from failed add