mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
terminal: malloc_trim() is a GNU extension
This commit is contained in:
parent
2195e2cf71
commit
78cd93f030
1 changed files with 4 additions and 0 deletions
|
|
@ -797,8 +797,12 @@ term_destroy(struct terminal *term)
|
|||
}
|
||||
|
||||
free(term);
|
||||
|
||||
#if defined(__GLIBC__)
|
||||
if (!malloc_trim(0))
|
||||
LOG_WARN("failed to trim memory");
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue