add memory release