Fix memory leak when fitting multinomial distribution

Replicate the fix on R-Forge
http://r-forge.r-project.org/tracker/?atid=1813&group_id=443&func=browse
by Christophe Foussette
Fix another potential memory leak

Undeleted object
Merge pull request #2 from jiho/fix/memory_leak

Fix memory leak when fitting multinomial distribution