Fix resource leak 13/172213/2
authorJiung <jiung.yu@samsung.com>
Mon, 12 Mar 2018 23:56:49 +0000 (08:56 +0900)
committerJiung <jiung.yu@samsung.com>
Mon, 12 Mar 2018 23:59:35 +0000 (08:59 +0900)
Change-Id: Ia675d3ff4f55ac2ec1a242a140e40d04558e4ef0
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
packaging/capi-network-wifi-direct.spec
test/wifi_direct_test.c

index 7493602..f3d988f 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       capi-network-wifi-direct
 Summary:    Network WiFi-Direct Library
-Version:    1.2.92
+Version:    1.2.93
 Release:    1
 Group:      Network & Connectivity/API
 License:    Apache-2.0
index df1c133..144b258 100644 (file)
@@ -814,7 +814,7 @@ void _cb_connection(int error_code, wifi_direct_connection_state_e connection_st
                                } else {
                                        printf("failed to get connecting peer info\n");
                                }
-
+                               g_free(peer);
                        }
                }
        }
@@ -2649,10 +2649,9 @@ static gboolean test_terminal_read_std_input(GIOChannel * source,
                printf("\n\n");
                /* printf("Read [%d]bytes data: [%s]\n", n, buf); */
                /* printf("Processing it ---------------------\n", n, buf); */
+               process_input(buf, user_data);
        }
 
-       process_input(buf, user_data);
-
        return TRUE;
 }