VirtualBox

Opened 9 years ago

Closed 9 years ago

#14393 closed defect (fixed)

vbox/src/VBox/Additions/common/crOpenGL/load.c:694: Resource leak

Reported by: dcb Owned by:
Component: other Version: VirtualBox 5.0.0
Keywords: Cc:
Guest type: other Host type: other

Description (last modified by Frank Mehnert)

Source code is

    while (!feof(f)) {
        char line[1000];
        char **args;
        fgets(line, 999, f);
        line[crStrlen(line) - 1] = 0; /* remove trailing newline */
        if (crStrncmp(line, procName, procNameLen) == 0 &&
            (line[procNameLen] == ' ' || line[procNameLen] == '\t'))
        {
            crWarning("Using Chromium configuration for %s from %s",
                                procName, configPath);
            args = crStrSplit(line + procNameLen + 1, " ");
            return args;
        }

Suggest add missing call to fclose

Change History (3)

comment:1 by Frank Mehnert, 9 years ago

Description: modified (diff)

comment:2 by Frank Mehnert, 9 years ago

Thanks but please report such problems on vbox-dev.

comment:3 by Frank Mehnert, 9 years ago

Resolution: fixed
Status: newclosed

And this code is unused. Commented out the whole chunk.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use