pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/34289?usp=email )

Change subject: stream_test: Avoid leaking osmo_stream_srv_link
......................................................................

stream_test: Avoid leaking osmo_stream_srv_link

Change-Id: I43b7327893c220447492d2c36c87b187a414cbdb
---
M tests/stream/stream_test.c
1 file changed, 12 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved
  osmith: Looks good to me, approved




diff --git a/tests/stream/stream_test.c b/tests/stream/stream_test.c
index 20afc55..0977fde 100644
--- a/tests/stream/stream_test.c
+++ b/tests/stream/stream_test.c
@@ -670,6 +670,7 @@

        if (osmo_stream_srv_link_open(srv) < 0) {
                printf("Unable to open server\n");
+               osmo_stream_srv_link_destroy(srv);
                return EXIT_FAILURE;
        }

@@ -679,5 +680,7 @@
        test_segm_ipa_stream_srv_run(tall_test, host, port, srv);

        printf("Stream tests completed\n");
+
+       osmo_stream_srv_link_destroy(srv);
        return EXIT_SUCCESS;
 }

--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/34289?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I43b7327893c220447492d2c36c87b187a414cbdb
Gerrit-Change-Number: 34289
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein <[email protected]>
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to