Merge "Fix system raising alarm due to outdated file in memory"
This commit is contained in:
commit
8b4080009d
@ -1,9 +1,10 @@
|
||||
"""
|
||||
Copyright (c) 2014-2022 Wind River Systems, Inc.
|
||||
Copyright (c) 2014-2023 Wind River Systems, Inc.
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
"""
|
||||
import gc
|
||||
import json
|
||||
import os
|
||||
import random
|
||||
@ -546,6 +547,9 @@ class PatchAgent(PatchService):
|
||||
hello_ack = PatchMessageHelloAgentAck()
|
||||
hello_ack.send(self.sock_out)
|
||||
|
||||
# Call python garbage collector to ensure the removal of cleared flags
|
||||
gc.collect()
|
||||
|
||||
# Indicate if the method was successful
|
||||
# success means no change needed, or a change worked.
|
||||
return success
|
||||
|
Loading…
Reference in New Issue
Block a user