Forget to free the data allocated in common_select(), and common_poll()...
Changed the header guard in vfs_select.h. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1748 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1e7eb4c232
commit
c4943b79fe
|
@ -2666,6 +2666,7 @@ common_select(int numfds, fd_set *readSet, fd_set *writeSet, fd_set *errorSet,
|
|||
|
||||
err:
|
||||
delete_sem(sync.sem);
|
||||
kfree(sync.set);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
@ -2789,6 +2790,7 @@ common_poll(struct pollfd *fds, nfds_t numfds, bigtime_t timeout, bool kernel)
|
|||
|
||||
err:
|
||||
delete_sem(sync.sem);
|
||||
kfree(sync.set);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
#ifndef FS_SELECT_H
|
||||
#define FS_SELECT_H
|
||||
#ifndef VFS_SELECT_H
|
||||
#define VFS_SELECT_H
|
||||
|
||||
typedef struct select_info {
|
||||
uint8 events;
|
||||
|
@ -35,4 +35,4 @@ enum select_events {
|
|||
#define INDEX_FROM_REF(ref) ((ref) & 0xffffUL)
|
||||
#define SELECT_FLAG_FROM_REF(ref) ((ref) >> 16L)
|
||||
|
||||
#endif /* FS_SELECT_H */
|
||||
#endif /* VFS_SELECT_H */
|
||||
|
|
Loading…
Reference in New Issue