Skip to content

Commit

Permalink
Fix nasa#311, Free (close) FileDescriptor resource to avoid leak
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Nov 2, 2022
1 parent a260e9c commit b954028
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fsw/modules/eeprom_mmap_file/cfe_psp_eeprom_mmap_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ int32 CFE_PSP_SetupEEPROM(uint32 EEPROMSize, cpuaddr *EEPROMAddress)
*/
*EEPROMAddress = (cpuaddr)DataBuffer;

close(FileDescriptor);

return 0;
}

Expand Down

0 comments on commit b954028

Please sign in to comment.