MONGOC_STREAM_DESTROY(3)

πŸ’… MONGOC_STREAM_DESTROY(3) πŸ’…

okay so bestie, welcome to the libmongoc corner of the manual β€” this one's short and sweet and honestly kind of a baddie: it's the cleanup era for your streams ✨


✨ SYNOPSIS ✨

void
mongoc_stream_destroy (mongoc_stream_t *stream);

πŸŽ€ PARAMETERS πŸŽ€

  • stream β€” a mongoc_stream_t. yeah. that's the one. 🫢

So like, this function shall release all resources associated with a mongoc_stream_t, including freeing the structure β€” it's giving full send, no leftovers, the whole thing gets yeeted πŸ’€

⚠️ big warning bestie: it is invalid to use stream after calling this function. like, the pointer is done, it's not coming back, do NOT touch it. that's use-after-free behavior and we are NOT doing that πŸ™ˆ

and if stream is NULL? it literally does nothing. iconique. no crash, no drama, just vibes 🌸


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


✨ that's the whole page, bestie ✨ this little legend comes to you from libmongoc version 2.5.6, dated Oct 09, 2026 β€” go forth and destroy your streams responsibly πŸ’–πŸŽ€πŸŒΊ

πŸ“¦ where this page comes from