diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-24 11:21:29 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-24 11:21:29 +0000 |
commit | f941d270ca52a7330736b75415dacf3b674513b5 (patch) | |
tree | 9c8be576ac2b6a3250a40f7471df849259bb218d /server.c | |
parent | 3859c9f239eab35789ce7c318120fea728051d40 (diff) |
Save/restore errno, free pfd buffer.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.32 2007-10-24 11:05:59 nicm Exp $ */ +/* $Id: server.c,v 1.33 2007-10-24 11:21:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -174,6 +174,8 @@ server_main(char *srv_path, int srv_fd) server_handle_windows(&pfd); server_handle_clients(&pfd); } + if (pfds != NULL) + xfree(pfds); for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { if (ARRAY_ITEM(&sessions, i) != NULL) |