ll2_unref_context(3)

ll2_unref_context3

Frees lastlog2 context.

Usage

#include <lastlog2.h>

*context * ll2_unref_context(ll2_context *context);

Overview

Frees lastlog2 context, which has been allocated by ll2_new_context.

const   char *db_path = "/var/lib/lastlog/lastlog2.db";
ll2_context *context = ll2_new_context(db_path);
/* other lastlog2 calls..... */
ll2_unref_context(context);

Authors

Thorsten Kukuk <[email protected]>

Reporting bugs

For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.

Availability

The liblastlog2 library is part of the util-linux package since version 2.40. It can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.

From util-linux-libs 2.42.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.