# HG changeset patch # User Matti Hamalainen # Date 1455233845 -7200 # Node ID 2ab9ab4b59eb886379d2abe0a1b0426c60fd0da1 # Parent d9cb7c635e7b9f0e7777d0ab6efec848319bdde7 Some fixes. diff -r d9cb7c635e7b -r 2ab9ab4b59eb sidinfo.c --- a/sidinfo.c Fri Feb 12 01:17:52 2016 +0200 +++ b/sidinfo.c Fri Feb 12 01:37:25 2016 +0200 @@ -625,6 +625,7 @@ optNoNamePrefix = TRUE; } + // Check paths if (setHVSCPath != NULL) { if (setSLDBPath == NULL) @@ -638,7 +639,7 @@ th_ioctx *ctx = th_io_new(&th_stdio_io_ops); if (ctx == NULL || th_io_open(ctx, setSLDBPath, "r") != THERR_OK) { - THERR("Ululu!\n"); + THERR("Could not open SLDB '%s'.\n", setSLDBPath); goto out; } @@ -646,8 +647,10 @@ si_sldb_read(ctx, sidSLDB) != THERR_OK) { THERR("Error parsing SLDB.\n"); + th_io_close(ctx); goto out; } + th_io_close(ctx); if ((ret = si_sldb_build_index(sidSLDB)) != THERR_OK) {