Use g_malloc instead of malloc.
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 16 Mar 2009 14:32:01 +0000 (14:32 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 16 Mar 2009 14:32:01 +0000 (14:32 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27738 f5534014-38df-0310-8fa8-9805f1628bb7

airpcap_loader.c

index 946239295f0a14b9afce2d42b72b3423415a5da8..d9b7d8a3dd2b2eff2c17a0a002163a6d35c7d8b2 100644 (file)
@@ -794,7 +794,7 @@ airpcap_if_get_device_supported_channels_array(PAirpcapHandle ah, PULONG pNumSup
     if (numInfo == 0)
         return NULL;
 
-    pSupportedChannels = malloc(numInfo * (sizeof *pSupportedChannels));
+    pSupportedChannels = g_malloc(numInfo * (sizeof *pSupportedChannels));
 
     for (i = 0; i < numInfo; i++)
     {