I am forwarding a message of Christoph Anton Mitterer (Cc'ed) which was
reported at Red Hat Bugzilla. However this does not feel for me like a
downstream thing but more relevant for popt upstream, thus relaying it:
----- Forwarded message -----
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,
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.
 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.
----- End forwarded message -----
Foreign references for this request are:
Received on Sun Nov 24 17:21:18 2013
- application/pgp-signature attachment: stored