From Evan Huus: add a missing free. Fixes bug 7092.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 14 Apr 2012 17:45:03 +0000 (17:45 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 14 Apr 2012 17:45:03 +0000 (17:45 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@42070 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c

index 537d0fcc599ed498aa6dcd1e43236582f2e31562..f05b54ac3bc1348633bc22c7070e72f3ee330b4f 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1197,6 +1197,7 @@ get_if_capabilities(const char *devname, gboolean monitor_mode
         pcap_close(pch);
         if (err_str != NULL)
             *err_str = NULL; /* an empty list doesn't mean an error */
+        g_free(caps);
         return NULL;
     }
     caps->data_link_types = NULL;