diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2022-09-08 09:47:45 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2022-09-08 09:47:45 -0400 |
commit | 6e0240802160634b01f85ab8a511771cd86cceb8 (patch) | |
tree | 9b0e97a4a07d810eeff186b961fb4cbf77773f18 /debuginfod/debuginfod-client.c | |
parent | 51fbd8ea2efb9a8d053a50031e643c1b26e84d79 (diff) | |
download | elfutils-6e0240802160634b01f85ab8a511771cd86cceb8.tar.gz |
PR28284 cont'd, ->winning_headers reset at start of new query
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>
Diffstat (limited to 'debuginfod/debuginfod-client.c')
-rw-r--r-- | debuginfod/debuginfod-client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index 272a6a7a..5e5c140a 100644 --- a/debuginfod/debuginfod-client.c +++ b/debuginfod/debuginfod-client.c @@ -588,9 +588,11 @@ debuginfod_query_server (debuginfod_client *c, 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; |