diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:44 +0000 |
commit | 836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch) | |
tree | 1604da8f482d02effa033c94a84be42bc0c848c3 /web/server/h2o/libh2o/deps/libyrmcds/close.c | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip |
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/h2o/libh2o/deps/libyrmcds/close.c')
-rw-r--r-- | web/server/h2o/libh2o/deps/libyrmcds/close.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/web/server/h2o/libh2o/deps/libyrmcds/close.c b/web/server/h2o/libh2o/deps/libyrmcds/close.c deleted file mode 100644 index d19ae7659..000000000 --- a/web/server/h2o/libh2o/deps/libyrmcds/close.c +++ /dev/null @@ -1,24 +0,0 @@ -// (C) 2013 Cybozu. - -#include "yrmcds.h" - -#include <stdlib.h> -#include <unistd.h> - -yrmcds_error yrmcds_close(yrmcds* c) { - if( c == NULL ) - return YRMCDS_BAD_ARGUMENT; - if( c->sock == -1 ) - return YRMCDS_OK; - - close(c->sock); - c->sock = -1; -#ifndef LIBYRMCDS_NO_INTERNAL_LOCK - pthread_mutex_destroy(&(c->lock)); -#endif - free(c->recvbuf); - c->recvbuf = NULL; - free(c->decompressed); - c->decompressed = NULL; - return YRMCDS_OK; -} |