Optimise xtract_smoothness() by removing call to malloc(). Also fix bug in xtract_smoothness() where *result was uninitialised but used in calculation.
Optimise xtract_smoothness() by removing call to malloc(). Also fix bug in xtract_smoothness() where *result was uninitialised but used in calculation.

jamiebullock/LibXtract,jamiebullock/LibXtract,kecsap/LibXtract,eriser/LibXtract,caseybasichis/LibXtract,caseybasichis/LibXtract,eriser/LibXtract,jamiebullock/LibXtract,kecsap/LibXtract,eriser/LibXtract,kecsap/LibXtract,caseybasichis/LibXtract