Package: libpopt-dev
Version: 1.16-3
Severity: normal
Tags: upstream

Hi.

Popt has the options to "automatically update program variables when the option 
is used".
This is done by the argInfo and arg elements of option tables.


1) For all the pointer types, i.e. POPT_ARG_STRING and POPT_ARG_ARGV it does 
not document[0],
what kind of memory this is (I guess dynamically allocated) and whether the 
user has to
free this (I guess so).

This is especially missing in the section "1. THE OPTION TABLE".


2) Again, for all the pointer types, i.e. POPT_ARG_STRING and POPT_ARG_ARGV it 
does not
document, what happens to the memory previously pointed to by the arg variable.
I guess(!) this is not freed (it could have been dynamically allocated), so it 
should at
least be documented, that no special care is taken by popt.


Cheers,
Chris.

[0] It does however document in section "3. PARSING THE COMMAND LINE", that the 
string returned
by  poptGetOptArg() has to be freed by the user.
I guess the same should be the case for the variables set via POPT_ARG_STRING 
and POPT_ARG_ARGV.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to