Bug 20679: Fix double free error in jal_purge