Avoid sequences of malloc(0) / free() by checking the length.
This has an impact on heap fragmentation.
Signed-off-by: Matthieu Herrb matthieu.herrb@laas.fr
This has an impact on heap fragmentation.
Signed-off-by: Matthieu Herrb matthieu.herrb@laas.fr