Bug 201729 - usr/src/release/picobsd/tinyware/view/view.c: 2 * resource leak ?
Summary: usr/src/release/picobsd/tinyware/view/view.c: 2 * resource leak ?
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.2-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 07:17 UTC by David Binderman
Modified: 2019-11-05 02:44 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2015-07-21 07:17:26 UTC
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);
    }
Comment 1 Kyle Evans freebsd_committer 2019-11-05 02:44:06 UTC
This PR has not seen resolution in 4 years, and PicoBSD has now been removed in r354346. Closing this as "Overcome by Events".