Fixed library addition leak