chiark / gitweb /
Do not realloc strings, which are already in the hashmap as keys
authorHarald Hoyer <harald@redhat.com>
Wed, 28 Aug 2013 13:33:35 +0000 (15:33 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 28 Aug 2013 14:02:57 +0000 (16:02 +0200)
commitb58b8e11c5f769e3c80d5169fdcc4bd04b882b7d
treef0ab4e44f8910ae63c9b017736d36bca3ebfe9c1
parent3d040cf24473f2ed13121d57ed753bad5f8ad09d
Do not realloc strings, which are already in the hashmap as keys

This prevents corruption of the hashmap, because we would free() the
keys in the hashmap, if the unit is already in there, with the same
cgroup path.
src/core/cgroup.c
src/core/unit.c