[systemd-devel] greedy_realloc()

Lennart Poettering lennart at poettering.net
Tue May 14 04:41:59 PDT 2013


On Tue, 14.05.13 11:32, Daniel Buch (boogiewasthere at gmail.com) wrote:

> http://cgit.freedesktop.org/systemd/systemd/tree/TODO#n115
> I wonder if this isnt covered with GREEDY_REALLOC()?

Yes, that's why we added it. However, there are probably a few byte-wise
uses of realloc() in our sources remaining, where greedy_realloc() would
be more appropriate. We'd need to identify those, check if
greedy_realloc() might be the better choice there, and if so, fix this.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list