summaryrefslogtreecommitdiff
path: root/src/core/target.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-17 22:12:25 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-05-15 15:29:58 +0200
commit4e595329a93ed190795c2e24bf132d5028ec6a72 (patch)
treec10fe321c34bf8183c42033022f89784878375f6 /src/core/target.h
parentde0671ee7fe465e108f62dcbbbe9366f81dd9e9a (diff)
Make sure that keys are properly removed from hashmap
This is a speculative fix for https://bugzilla.redhat.com/show_bug.cgi?id=1088865. Even though I cannot find a code path that where this would be an issue, for consistency, if we assume that cgroup_path might have been set before we got to unit_deserialize, we should make sure that the unit is removed from the hashmap before we free the key. This seems to be the only place where the key could be prematurely freed, leading to hashmap corruption.
Diffstat (limited to 'src/core/target.h')
0 files changed, 0 insertions, 0 deletions