mariadb_dyncol_free(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ mariadb_dyncol_free ✨

okay bestie, gather round, because we're talking about mariadb_dyncol_free(3) from the MariaDB Connector/C manual β€” yes, that's the manual name right there, and the function name is the whole vibe. πŸ’…


πŸŽ€ Name πŸŽ€

mariadb_dyncol_free β€” free the memory inside the packed blob, no cap.


🌸 Synopsis 🌸

#include <mariadb_dyncol.h>

void mariadb_dyncol_free(DYNAMIC_COLUMN *str)

πŸ’– Description πŸ’–

It frees the memory that the specified dynamic column is holding onto. That's it, that's the whole job, and it does it flawlessly. 🫢


πŸ¦‹ Parameter πŸ¦‹

  • *str β€” a pointer to a DYNAMIC_COLUMN structure. literally just hand it the pointer and it handles the rest.

πŸ‘‘ Notes πŸ‘‘

  • important bestie, do not skip this one: mariadb_dyncol_free() doesn't free the memory of the passed DYNAMIC_COLUMN structure β€” it frees all the memory of the stored columns. so it's the contents getting the cleanout, not the struct itself. mind the distinction, it's giving subtle but crucial. πŸ’€

🌈 See also 🌈

  • mariadb_dyncol_init(3)

that's the whole page, you ate it, periodt. πŸ“

Version 3.4 of the MariaDB Connector/C docs, mwah β€” go free your columns responsibly, icon. πŸ’œβœ¨

πŸ“¦ where this page comes from