#vulnerable code 
                                @Test
    public void testLastEndpoint()
    {
        //  Create the infrastructure
        Ctx ctx = ZMQ.init(1);
        assertThat(ctx, notNullValue());

        SocketBase sb = ZMQ.socket(ctx, ZMQ.ZMQ_ROUTER);
        assertThat(sb, notNullValue());

        bindAndVerify(sb, "tcp://127.0.0.1:5560");
        bindAndVerify(sb, "tcp://127.0.0.1:5561");
        bindAndVerify(sb, "ipc:///tmp/testep");

        sb.close();
        ctx.terminate();
    } 
                            #location 16 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void testLastEndpoint()
    {
        //  Create the infrastructure
        Ctx ctx = ZMQ.init(1);
        assertThat(ctx, notNullValue());

        SocketBase sb = ZMQ.socket(ctx, ZMQ.ZMQ_ROUTER);
        assertThat(sb, notNullValue());

        bindAndVerify(sb, "tcp://127.0.0.1:5560");
        bindAndVerify(sb, "tcp://127.0.0.1:5561");
        bindAndVerify(sb, "ipc:///tmp/testep" + UUID.randomUUID().toString());

        sb.close();
        ctx.terminate();
    }