Only allocate the necessary amount of memory (c/expect buffer); issue introduced in an earlier commit. Code cleanup.
Only allocate the necessary amount of memory (c/expect buffer); issue introduced in an earlier commit. Code cleanup.

maxhutch/libxsmm,egeor/libxsmm,maxhutch/libxsmm,maxhutch/libxsmm,egeor/libxsmm,egeor/libxsmm,hfp/libxsmm,hfp/libxsmm,hfp/libxsmm,hfp/libxsmm,egeor/libxsmm,hfp/libxsmm,egeor/libxsmm,maxhutch/libxsmm,egeor/libxsmm,hfp/libxsmm