Changeset 3af84c1 in rtems


Ignore:
Timestamp:
09/20/22 15:30:12 (3 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
master
Children:
cc43dc3e
Parents:
584f5bc9
git-author:
Kinsey Moore <kinsey.moore@…> (09/20/22 15:30:12)
git-committer:
Joel Sherrill <joel@…> (10/03/22 18:24:46)
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

    r584f5bc9 r3af84c1  
    701701  rtems_chain_extract_unprotected (&handle->blob->node);
    702702
     703  rtems_fdt_release_index(&handle->blob->index);
     704
    703705  free (handle->blob);
    704706
     
    706708
    707709  rtems_fdt_unlock (fdt);
    708 
    709   rtems_fdt_release_index(&handle->blob->index);
    710710
    711711  return 0;
Note: See TracChangeset for help on using the changeset viewer.