capinfos: fix leak of message digest handle
authorPeter Wu <peter@lekensteyn.nl>
Thu, 15 Mar 2018 11:22:54 +0000 (12:22 +0100)
committerAnders Broman <a.broman58@gmail.com>
Thu, 15 Mar 2018 20:28:25 +0000 (20:28 +0000)
Change-Id: If67a29b7eff3b3f92e37ac6a6900f9df8aa84818
Reviewed-on: https://code.wireshark.org/review/26480
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
capinfos.c

index d32e4203b405051c56477aac236a6bbe28415bcf..8e8af1fa28868fe51eab99a2b24b30c83a12872f 100644 (file)
@@ -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;