On Tue, Sep 28, 2021 at 10:28 AM Ron Yorston <[email protected]> wrote: > Add the --post-file option to send form data from a file. As with > --post-data it's up to the user to ensure that the data is encoded > as appropriate: all wget does is stuff the provided data into > the request. > > The --post-data and --post-file options are mutually exclusive and > only one instance of either may be given. > > Additionally: > > - update the usage message to include missing details of the --post-data > and --header options; > > - free POST data if FEATURE_CLEAN_UP is enabled.
> #if ENABLE_FEATURE_CLEAN_UP && ENABLE_FEATURE_WGET_LONG_OPTIONS > free(G.extra_headers); > + free(G.post_data); > + free(G.post_file); This is wrong, isn't it? G.post_file is not malloced. G.post_data is not always allocated. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
