tevent: Remove single-use ev_str_list_[length|add]
commit8ee391bbd0610c376e914ddbf236dbd68d5f40cb
authorVolker Lendecke <vl@samba.org>
Mon, 3 May 2021 20:03:47 +0000 (3 22:03 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 16:47:34 +0000 (4 16:47 +0000)
tree9537d2a6b0833cf6a597cac0fe84c7970771a5b1
parentb6191956899d3a962dbddc19b39d509141774208
tevent: Remove single-use ev_str_list_[length|add]

This also adds proper error checks, the previous code could (very
theoretically) have leaked memory if an intermediate _add had failed.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tevent/tevent.c
lib/tevent/tevent_util.c
lib/tevent/tevent_util.h