Changeset 05461aa4 in rtems


Ignore:
Timestamp:
09/20/22 15:30:12 (18 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
5
Children:
2243fd6
Parents:
cab00c70
git-author:
Kinsey Moore <kinsey.moore@…> (09/20/22 15:30:12)
git-committer:
Joel Sherrill <joel@…> (10/03/22 18:24:28)
Message:

cpukit/fdt: Free index before container

Ensure that the index is released before the structure containing it is
freed and NULLed.

Updates #4460

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/rtems-fdt/rtems-fdt.c

    rcab00c70 r05461aa4  
    681681  rtems_chain_extract_unprotected (&handle->blob->node);
    682682
     683  rtems_fdt_release_index(&handle->blob->index);
     684
    683685  free (handle->blob);
    684686
     
    686688
    687689  rtems_fdt_unlock (fdt);
    688 
    689   rtems_fdt_release_index(&handle->blob->index);
    690690
    691691  return 0;
Note: See TracChangeset for help on using the changeset viewer.