#7084 closed Bugs (fixed)
memory leak in fileiter.cpp
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | regex |
| Version: | Boost 1.51.0 | Severity: | Problem |
| Keywords: | Cc: | yogen.saini@… |
Description
In file libs/regex/src/fileiter.cpp
In case the opendir is successful but if condition fails in following code block then there will be memory leak.
DIR* h = opendir(dat->root);
dat->d = h;
if(h != 0)
{
if(_fi_FindNextFile(dat, lpFindFileData))
return dat;
}
delete dat;
return 0;
The attached patch is the fix for this situation.
Attachments (1)
Change History (3)
by , 10 years ago
| Attachment: | fileiter.cpp_patch added |
|---|
comment:1 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fix for the reported Bug.