'\" t .\" Title: ll2_unref_context .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.26 .\" Date: 2026-04-01 .\" Manual: Programmer's Manual .\" Source: util-linux 2.42 .\" Language: English .\" .TH "LL2_UNREF_CONTEXT" "3" "2026-04-01" "util\-linux 2.42" "Programmer\*(Aqs Manual" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" ll2_unref_context \- Frees lastlog2 context. .SH "SYNOPSIS" .sp \fB#include \fP .sp *context * ll2_unref_context(ll2_context *context); .SH "DESCRIPTION" .sp Frees lastlog2 context, which has been allocated by \fIll2_new_context\fP. .sp .if n .RS 4 .nf .fam C const\& char *db_path = "/var/lib/lastlog/lastlog2.db"; ll2_context *context = ll2_new_context(db_path); /* other lastlog2 calls..... */ ll2_unref_context(context); .fam .fi .if n .RE .SH "AUTHORS" .sp .MTO "kukuk\(atsuse.de" "Thorsten Kukuk" "" .SH "SEE ALSO" .sp \fBlastlog2\fP(3), \fBll2_new_context\fP(3), \fBll2_read_all\fP(3), \fBll2_write_entry\fP(3), \fBll2_read_entry\fP(3), \fBll2_remove_entry\fP(3), \fBll2_update_login_time\fP(3), \fBll2_import_lastlog\fP(3) .SH "REPORTING BUGS" .sp For bug reports, use the \c .URL "https://github.com/util\-linux/util\-linux/issues" "issue tracker" "." .SH "AVAILABILITY" .sp The \fBliblastlog2\fP library is part of the util\-linux package since version 2.40. It can be downloaded from \c .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."