Update, mem leak fixed, updated repository url to IDSC