https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201729

            Bug ID: 201729
           Summary: usr/src/release/picobsd/tinyware/view/view.c: 2 *
                    resource leak ?
           Product: Base System
           Version: 10.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: [email protected]
          Reporter: [email protected]

1.

[usr/src/release/picobsd/tinyware/view/view.c:280]: (error) Resource leak: fd

   if(!png_check_sig(header,NUMBER)) {
        fprintf(stderr,"Not a PNG file.\n");
        return(-1);
    }

2.

[usr/src/release/picobsd/tinyware/view/view.c:290]: (error) Resource leak: fd

    if(!png_ptr || !info_ptr || !end_info) {
        VGLEnd();
        fprintf(stderr,"failed to allocate needed structs!\n");
        png_destroy_read_struct(&png_ptr,&info_ptr,&end_info);
        return(-1);
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to