#vulnerable code 
                                @Test
    void ex8() throws IOException {
        //## image
        Graphviz.useEngine(new GraphvizV8Engine());
        Graphviz g = Graphviz.fromGraph(graph()
                .with(node(" ").with(Size.std().margin(.8, .7), Image.of("graphviz.png"))));
        g.basedir(new File("example")).render(Format.PNG).toFile(new File("example/ex8.png"));
        //## image
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    void ex8() throws IOException {
        //## image
        Graphviz g = Graphviz.fromGraph(graph()
                .with(node(" ").with(Size.std().margin(.8, .7), Image.of("graphviz.png"))));
        g.basedir(new File("example")).render(Format.PNG).toFile(new File("example/ex8.png"));
        //## image
    }