#fixed code
                                public void run() throws Exception {
        TChannel tchannel = new TChannel.Builder("ping-server")
                .register("ping", new PingRequestHandler())
                .setServerPort(this.port)
                .build();

        tchannel.listen().channel().closeFuture().sync();
    }
#vulnerable code 
                                public void run() throws Exception {
        TChannel tchannel = new TChannel.Builder("ping-server")
                .register("ping", new PingRequestHandler())
                .setPort(this.port)
                .build();

        tchannel.listen().channel().closeFuture().sync();
    } 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK