1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
5 <refentry id="pam_misc_drop_env">
8 <refentrytitle>pam_misc_drop_env</refentrytitle>
9 <manvolnum>3</manvolnum>
10 <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
13 <refnamediv id="pam_misc_drop_env-name">
14 <refname>pam_misc_drop_env</refname>
15 <refpurpose>liberating a locally saved environment</refpurpose>
18 <!-- body begins here -->
21 <funcsynopsis id="pam_misc_drop_env-synopsis">
22 <funcsynopsisinfo>#include <security/pam_misc.h></funcsynopsisinfo>
24 <funcdef>int <function>pam_misc_drop_env</function></funcdef>
25 <paramdef>char **<parameter>env</parameter></paramdef>
30 <refsect1 id='pam_misc_drop_env-description'>
31 <title>DESCRIPTION</title>
33 This function is defined to complement the <citerefentry>
34 <refentrytitle>pam_getenvlist</refentrytitle><manvolnum>3</manvolnum>
35 </citerefentry> function. It liberates the memory associated
36 with <parameter>env</parameter>, <emphasis>overwriting</emphasis>
37 with <emphasis>0</emphasis> all memory before
38 <function>free()</function>ing it.
42 <refsect1 id='pam_misc_drop_env-see_also'>
43 <title>SEE ALSO</title>
46 <refentrytitle>pam_getenvlist</refentrytitle><manvolnum>3</manvolnum>
49 <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
54 <refsect1 id='pam_misc_drop_env-standards'>
55 <title>STANDARDS</title>
57 The <function>pam_misc_drop_env</function> function is part of the
58 <command>libpam_misc</command> Library and not defined in any