Mem leak libhsm 1.3