Fix double free

Fix double free