activate: move array allocation to heap
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Jul 2019 12:52:07 +0000 (14:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Jul 2019 12:56:25 +0000 (14:56 +0200)
commit49aca3b1525ff2273b4d61d52a9bb1347b48bd5f
tree6a1cc7773d65b0ec1398fbf2f0a9f33232e67362
parent476da0fe00b863123461396d6acb403c92a806a5
activate: move array allocation to heap

In theory 'n' could get quite large, and some sanitizers notice that,
let's hence avoid the stack, and use the heap instead.

Moreover, there's no need to include the first 3 fds in the array,
close_all() excludes those anyway.

See: #13064
src/activate/activate.c