diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-06 17:51:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-06 17:51:14 +0000 |
commit | 6319ac5225aec738f134f338f68109822581bff1 (patch) | |
tree | 17e827cff6841eaae0de6b0b733ee2e8958cc9e0 /src/libunixonacid/unixmessage_receiver_free.c | |
parent | 5d6810d9eb833f923f1543fbb369823f7cd289df (diff) | |
download | skalibs-6319ac5225aec738f134f338f68109822581bff1.tar.xz |
Rewrite unixmessage_receiver without buffer, only cbuffer
Diffstat (limited to 'src/libunixonacid/unixmessage_receiver_free.c')
-rw-r--r-- | src/libunixonacid/unixmessage_receiver_free.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libunixonacid/unixmessage_receiver_free.c b/src/libunixonacid/unixmessage_receiver_free.c index c23cc77..353797b 100644 --- a/src/libunixonacid/unixmessage_receiver_free.c +++ b/src/libunixonacid/unixmessage_receiver_free.c @@ -5,7 +5,8 @@ void unixmessage_receiver_free (unixmessage_receiver_t *b) { - stralloc_free(&b->data) ; - b->mainb.fd = -1 ; - b->mainlen = b->auxlen = b->auxw = 0 ; + b->fd = -1 ; + stralloc_free(&b->maindata) ; + stralloc_free(&b->auxdata) ; + b->mainlen = b->auxlen = 0 ; } |