Fix leak in moments
Fix leak in moments

Fix a memory leak in moments

9prady9/arrayfire,umar456/arrayfire,arrayfire/arrayfire,9prady9/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,umar456/arrayfire,arrayfire/arrayfire,umar456/arrayfire,arrayfire/arrayfire,umar456/arrayfire,9prady9/arrayfire