MAINT: C fixes

Two very minor patches.
The allocation for ``params[kk]`` is conditional, so I think the check is needed? Line 227-228:

        if (input->dimensions[kk] > 1) {
            params[kk] = (double*)malloc(input->dimensions[kk] * sizeof(double));