Merge pull request #48 from wtsi-npg/devel

memory leak fix
Merge pull request #49 from wtsi-npg/master

pull from master to devel (tag 74.4 )