Fix build error
[platform/core/connectivity/net-config.git] / src / wifi.c
index 889387f..d2aa830 100755 (executable)
@@ -18,6 +18,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <vconf.h>
 #include <vconf-keys.h>
@@ -68,7 +69,7 @@ static void _set_wifi_mac_address(void)
        if (mac_addr != NULL) {
                if (strlen(mac_addr) == 0)
                        netconfig_set_mac_address_from_file();
-               g_free(mac_addr);
+               free(mac_addr);
        }
 }