if (!c)
return log_oom();
- r = hashmap_ensure_put(h, NULL, PID_TO_PTR(pid), c);
+ r = hashmap_ensure_put(h, &trivial_hash_ops_value_free, PID_TO_PTR(pid), c);
if (r == -ENOMEM)
return log_oom();
if (r < 0)
}
static int remount_by_fstab(Hashmap **ret_pids) {
- _cleanup_hashmap_free_free_ Hashmap *pids = NULL;
+ _cleanup_hashmap_free_ Hashmap *pids = NULL;
_cleanup_endmntent_ FILE *f = NULL;
bool has_root = false;
struct mntent* me;
}
static int run(int argc, char *argv[]) {
- _cleanup_hashmap_free_free_ Hashmap *pids = NULL;
+ _cleanup_hashmap_free_ Hashmap *pids = NULL;
int r;
log_setup();