net/ice: fix perfect match for ACL rule
[dpdk.git] / app / test / test_telemetry_data.c
index 0032686..f34d691 100644 (file)
@@ -330,6 +330,7 @@ connect_to_socket(void)
        if (bytes < 0) {
                printf("%s: Error with socket read - %s\n", __func__,
                                strerror(errno));
+               close(sock);
                return -1;
        }
        buf[bytes] = '\0';