Fix things found by coverity in the 0.1.0 release
Fix things found by coverity in the 0.1.0 release

libla/libattachsql,libattachsql/libattachsql,libattachsql/libattachsql,libattachsql/libattachsql,libla/libattachsql,libla/libattachsql