You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gvfs-helper-client: be careful about process entries
The gh_client__find_long_running_process() method returns a
gh_server__process pointer when finding a process. However, that could
be contained within the hashtable of long-running processes _or_ a
brand-new struct due to creating a new process.
This means that we are leaking data in these cases where a struct is
created directly. Add a new signal to say whether or not this pointer
should be removed. Note that there are some error cases in the callers
that already FREE_AND_NULL() the value, but that does not seem to be a
problem in our test scripts.
This change is necessary to help t5799-gvfs-helper.sh pass when compiled
with SANITIZE=leak.
Signed-off-by: Derrick Stolee <[email protected]>
0 commit comments