Opened 9 years ago
Last modified 9 years ago
#14393 closed defect
vbox/src/VBox/Additions/common/crOpenGL/load.c:694: Resource leak — at Initial Version
Reported by: | dcb | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 5.0.0 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description
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
Note:
See TracTickets
for help on using tickets.