// This file is part of CPAchecker,
// a tool for configurable software verification:
// https://cpachecker.sosy-lab.org
//
// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
//
// SPDX-License-Identifier: Apache-2.0

struct Recursive {
  struct Recursive *p;
};

int foo() {
  struct Recursive *a;
  struct Recursive *b;
  a = ext_allocation();
  b = a->p->p;
  free(b->p);
  free(a);
  return 0;
}

int main() {
  foo();
  return 0;
}

