Add inline comment regarding freeing resources