Merge pull request #84 from florent-lamiraux/devel

Fix memory leak and update code
20 jobs for devel in 4 minutes and 16 seconds (queued for 2 seconds)