Fixed a memory leak for real multi-dimensional transforms.
Added a check for NULL pointer.
Merge pull request #6 from henryrobbinsgouk/master

Fixed a memory leak for real multi-dimensional transforms.