]> git.ipfire.org Git - thirdparty/systemd.git/commit
socket-util: use GREEDY_REALLOC_APPEND where appropriate
authorMike Yuan <me@yhndnzj.com>
Tue, 28 May 2024 02:41:37 +0000 (10:41 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 28 May 2024 13:42:14 +0000 (15:42 +0200)
commit1e1df052964ecf12467ba2dc78b0b0f87524a5aa
treee9e2fe5ad69def1fd32da6cf7173a12212a15245
parent7c1a1aa42c474daee5b90f102285676fd9cafd6c
socket-util: use GREEDY_REALLOC_APPEND where appropriate

Also, previously GREEDY_REALLOC was used improperly,
causing the fds_array to be leaked when realloc() fails.
src/basic/socket-util.c