Code style fix.

Just rearrange and shift around.
Fix #1 smith waterman gotoh segfault.

Fix for issue #1
Use conf before freeing it.