Blame support/resolv_response_context_free.c

Packit Service 5049f3
/* Free a response context used in DNS resolver tests.
Packit Service 5049f3
   Copyright (C) 2020 Free Software Foundation, Inc.
Packit Service 5049f3
   This file is part of the GNU C Library.
Packit Service 5049f3
Packit Service 5049f3
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 5049f3
   modify it under the terms of the GNU Lesser General Public
Packit Service 5049f3
   License as published by the Free Software Foundation; either
Packit Service 5049f3
   version 2.1 of the License, or (at your option) any later version.
Packit Service 5049f3
Packit Service 5049f3
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 5049f3
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 5049f3
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 5049f3
   Lesser General Public License for more details.
Packit Service 5049f3
Packit Service 5049f3
   You should have received a copy of the GNU Lesser General Public
Packit Service 5049f3
   License along with the GNU C Library; if not, see
Packit Service 5049f3
   <https://www.gnu.org/licenses/>.  */
Packit Service 5049f3
Packit Service 5049f3
#include <stdlib.h>
Packit Service 5049f3
#include <support/resolv_test.h>
Packit Service 5049f3
Packit Service 5049f3
void
Packit Service 5049f3
resolv_response_context_free (struct resolv_response_context *ctx)
Packit Service 5049f3
{
Packit Service 5049f3
  free (ctx->query_buffer);
Packit Service 5049f3
  free (ctx->client_address);
Packit Service 5049f3
  free (ctx);
Packit Service 5049f3
}