while(1) {
if((ret = env->txn_begin(env, NULL, &txn, 0)) != 0) {
fprintf(stderr, "statdbput: could not begin transaction in %s: %s\n", dbpath, db_strerror(ret));
+ db->close(db, 0);
+ env->close(env, 0);
return(1);
}
rv = 0;
}
if((ret = txn->commit(txn, 0)) != 0) {
fprintf(stderr, "statdbput: could not commit transaction in %s: %s\n", dbpath, db_strerror(ret));
+ db->close(db, 0);
+ env->close(env, 0);
return(1);
}
+ db->close(db, 0);
+ env->close(env, 0);
if(ul) {
for(i = 0; i < files.d; i++) {
if(verbose)