GFS_STAT_FREE(3)
π GFS_STAT_FREE(3) π
okay bestie, welcome to the Gfarm corner of the manual, section 3, and today we're talking about gfs_stat_free β yes, the cleanup queen herself. GFS_STAT_FREE(3) π«Ά
β¨ NAME β¨
gfs_stat_free β free dynamic memory of file status π§Ήπ
πΈ SYNOPSIS πΈ
#include <gfarm/gfarm.h>
void gfs_stat_free(struct gfs_stat * status);
look at her. short. iconic. no return value because she simply does not need one. β¨
π¦ DESCRIPTION π¦
So like, gfs_stat_free() frees the memory space of file status status β and like, that memory? It was allocated by gfs_stat(3). π
Translation for the besties: you called gfs_stat(3), it handed you a shiny dynamically-allocated struct gfs_stat *, and now you're done with it. You don't just leave it there. You call gfs_stat_free() on it and let it go. It's giving responsible memory management. It's giving main character energy but for your heap. πβ¨
important vibe check: this function frees the memory space of the file statusstatusthat was allocated bygfs_stat(3). Don't be out here passing it pointers from anywhere else, okay? π
π SEE ALSO π
gfs_stat(3)β the one who allocated it in the first place, the origin story, the prequel π
and that's the whole page, bestie. no cap, she's a tiny function but she's doing the lord's work. π
this page came to you from Gfarm, dated 24 Jun 2019 β so yeah, she's been keeping your memory tidy since way back. slay. ππΈ
stay free, stay allocated only when necessary, mwah π β¨
π¦ where this page comes from
- debian bookworm: libgfarm-dev 2.7.20+dfsg-1+b2 Β· BSD-like
- debian trixie: libgfarm-dev 2.7.20+dfsg-1.2+b1 Β· BSD-like
- ubuntu jammy: libgfarm-dev 2.7.17+dfsg-1build2 Β· BSD-like
- ubuntu noble: libgfarm-dev 2.7.20+dfsg-1.1ubuntu1 Β· BSD-like
- ubuntu questing: libgfarm-dev 2.7.20+dfsg-1.2
- ubuntu resolute: libgfarm-dev 2.7.20+dfsg-1.3 Β· BSD-like
- ubuntu stonking: libgfarm-dev 2.7.20+dfsg-1.3build1 Β· BSD-like
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms