Mark noted we need to ditch the last client ->winning_headers along
with the last ->url.
Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
+2022-09-08 Frank Ch. Eigler <fche@redhat.com>
+
+ * debuginfod-client.c (debuginfod_query_server): Clear
+ ->winning_headers along with ->url at the start of any new query.
+
2022-09-08 Martin Liska <mliska@suse.cz>
* debuginfod-client.c (debuginfod_get_headers): Add to DUMMY_LIBDEBUGINFOD.
goto out;
}
- /* Clear the obsolete URL from a previous _find operation. */
+ /* Clear the obsolete data from a previous _find operation. */
free (c->url);
c->url = NULL;
+ free (c->winning_headers);
+ c->winning_headers = NULL;
/* PR 27982: Add max size if DEBUGINFOD_MAXSIZE is set. */
long maxsize = 0;