* fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete
instead. Also fix previous ChangeLog entry.
This commit is contained in:
parent
1f08558f14
commit
ad39174691
@ -1,10 +1,18 @@
|
|||||||
|
2011-08-12 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete
|
||||||
|
instead.
|
||||||
|
|
||||||
2011-08-12 Corinna Vinschen <corinna@vinschen.de>
|
2011-08-12 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.h (fhandler_proc::opendir): Declare.
|
* fhandler.h (fhandler_proc::opendir): Declare.
|
||||||
(fhandler_proc::closedir): Declare.
|
(fhandler_proc::closedir): Declare.
|
||||||
* fhandler_proc.cc (fhandler_proc::opendir): New method. Fetch list
|
* fhandler_proc.cc (fhandler_proc::opendir): New method. Fetch list
|
||||||
of active processes here once to avoid potential duplicates.
|
of active processes here once to avoid potential duplicates and store
|
||||||
(fhandler_proc::closedir): New method.
|
in dir->__handle.
|
||||||
|
(fhandler_proc::closedir): New method. Free dir->__handle.
|
||||||
|
(fhandler_proc::readdir): Convert pinfo into a reference to the winpids
|
||||||
|
entry in dir->__handle.
|
||||||
|
|
||||||
2011-08-11 Corinna Vinschen <corinna@vinschen.de>
|
2011-08-11 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ fhandler_proc::opendir (int fd)
|
|||||||
int
|
int
|
||||||
fhandler_proc::closedir (DIR *dir)
|
fhandler_proc::closedir (DIR *dir)
|
||||||
{
|
{
|
||||||
free (dir->__handle);
|
delete (winpids *) dir->__handle;
|
||||||
return fhandler_virtual::closedir (dir);
|
return fhandler_virtual::closedir (dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user