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:
Axel Dörfler 2002-10-29 04:21:22 +00:00
parent 1e7eb4c232
commit c4943b79fe
2 changed files with 5 additions and 3 deletions

View File

@ -2666,6 +2666,7 @@ common_select(int numfds, fd_set *readSet, fd_set *writeSet, fd_set *errorSet,
err: err:
delete_sem(sync.sem); delete_sem(sync.sem);
kfree(sync.set);
return count; return count;
} }
@ -2789,6 +2790,7 @@ common_poll(struct pollfd *fds, nfds_t numfds, bigtime_t timeout, bool kernel)
err: err:
delete_sem(sync.sem); delete_sem(sync.sem);
kfree(sync.set);
return count; return count;
} }

View File

@ -2,8 +2,8 @@
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved. ** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License. ** Distributed under the terms of the OpenBeOS License.
*/ */
#ifndef FS_SELECT_H #ifndef VFS_SELECT_H
#define FS_SELECT_H #define VFS_SELECT_H
typedef struct select_info { typedef struct select_info {
uint8 events; uint8 events;
@ -35,4 +35,4 @@ enum select_events {
#define INDEX_FROM_REF(ref) ((ref) & 0xffffUL) #define INDEX_FROM_REF(ref) ((ref) & 0xffffUL)
#define SELECT_FLAG_FROM_REF(ref) ((ref) >> 16L) #define SELECT_FLAG_FROM_REF(ref) ((ref) >> 16L)
#endif /* FS_SELECT_H */ #endif /* VFS_SELECT_H */