diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-27 17:48:38 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-27 17:48:38 -0200 |
commit | cda6bdd56b54f4ab9da15e559edce9591ef12ce1 (patch) | |
tree | 1f420c7910e3d6acbef594a7391e8fe91545eb63 /linux/LinuxProcessList.c | |
parent | ff4d1b466fba116d0750a815a1d517dbc24b4b43 (diff) |
Add ProcessList_delete to the variable interface.
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r-- | linux/LinuxProcessList.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index c549667e..0b46d119 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -77,6 +77,11 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) { return this; } +void ProcessList_delete(ProcessList* this) { + ProcessList_done(this); + free(this); +} + static ssize_t xread(int fd, void *buf, size_t count) { // Read some bytes. Retry on EINTR and when we don't get as many bytes as we requested. size_t alreadyRead = 0; |