prefs: Don't remove unknown coloring rules.
[metze/wireshark/wip.git] / capinfos.c
index d32e4203b405051c56477aac236a6bbe28415bcf..52ef4ec33c4a78afb686bcdcf1639824dee91da2 100644 (file)
@@ -1458,7 +1458,7 @@ main(int argc, char *argv[])
    * Attempt to get the pathname of the directory containing the
    * executable file.
    */
-  init_progfile_dir_error = init_progfile_dir(argv[0], main);
+  init_progfile_dir_error = init_progfile_dir(argv[0]);
   if (init_progfile_dir_error != NULL) {
     fprintf(stderr,
             "capinfos: Can't get pathname of directory containing the capinfos program: %s.\n",
@@ -1719,6 +1719,7 @@ main(int argc, char *argv[])
 
 exit:
   g_free(hash_buf);
+  gcry_md_close(hd);
   wtap_cleanup();
   free_progdirs();
   return overall_error_status;