X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=wotsap.c;h=3aefc42012a4059324bfbad3ad7e080fc548ea81;hb=adc800dbc424a1e246dd4a82a0c2e88eeda25531;hp=66dc94699d2dc12150e541b543b0e6e12c3d47c3;hpb=8e0907be1d73011075a99a0c029c56664e12843e;p=onak.git diff --git a/wotsap.c b/wotsap.c index 66dc946..3aefc42 100644 --- a/wotsap.c +++ b/wotsap.c @@ -19,8 +19,7 @@ * more details. * * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * this program. If not, see . */ #include @@ -203,7 +202,7 @@ int main(int argc, char *argv[]) readconfig(configfile); initlogthing("wotsap", config.logfile); - dbctx = config.dbinit(true); + dbctx = config.dbinit(config.backend, true); if (dbctx != NULL) { inithash(); wotsap(dbctx, dbctx->getfullkeyid(dbctx, keyid), @@ -215,4 +214,5 @@ int main(int argc, char *argv[]) } cleanuplogthing(); cleanupconfig(); + free(configfile); }