Free pam memory