]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - gpgwww.c
cscvs to tla changeset 57
[onak.git] / gpgwww.c
index 75022b86e83b5d74d1312c4fc161fc3968e91d92..c225b827c90e095176e4d473b0a1fec9d82d0cd7 100644 (file)
--- a/gpgwww.c
+++ b/gpgwww.c
@@ -54,15 +54,22 @@ int main(int argc, char *argv[])
        }
 
        printf("<P>Looking for path from 0x%llX to 0x%llX</P>\n", from, to);
+       readconfig();
        initdb();
        inithash();
        dofindpath(from, to, true);
        destroyhash();
        cleanupdb();
+       cleanupconfig();
 
        puts("<HR>");
-       puts("Produced by gpgwww " VERSION ", part of onak. <A HREF=\"mailto:noodles-onak@earth.li\">Jonathan McDowell</A>");
+       puts("Produced by gpgwww " VERSION ", part of onak. "
+               "<A HREF=\"mailto:noodles-onak@earth.li\">"
+               "Jonathan McDowell</A>");
        end_html();
 
+       cleanupcgi(cgiparams);
+       cgiparams = NULL;
+
        return EXIT_SUCCESS;
 }