Suggestions for resolving memory leaks

These changes are suggestions for resolving memory leaks
And the some buffers, which are allocated by "pocl_aligned_malloc", are
deallocated by "free". It makes some troubles. I also suggest all malloc
and calloc should be changed to "pocl_aligned_malloc" also "free" should
be changed to "pocl_aligned_free"
Please remove these // [Suggested by ...] comments. The fact that you are suggesting these changes is implicit from you doing a merge request from your fork.