Mercurial > hg > sidinfo
changeset 90:2ab9ab4b59eb
Some fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 12 Feb 2016 01:37:25 +0200 |
parents | d9cb7c635e7b |
children | 5ec395268fd3 |
files | sidinfo.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {