From ee1f44bd9a63e776810a31bd8394e8d481b6c34d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 14 May 2012 22:41:17 +0200 Subject: [PATCH] sd-login: update header docs a bit --- src/systemd/sd-login.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index f8c3c6913..0a6d6ffda 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -34,7 +34,9 @@ extern "C" { * Instead of returning an empty string array or empty uid array, we * may return NULL. * - * Free the data we return with libc free(). + * Free the data the library returns with libc free(). String arrays + * are NULL terminated and you need to free the array itself in + * addition to the strings contained. * * We return error codes as negative errno, kernel-style. 0 or * positive on success. -- 2.30.2