sd-journal: log about errors from ordered_hashmap_*()

Follow-up to 08a8fd6e8d.
This commit is contained in:
Frantisek Sumsal
2023-05-26 16:16:25 +02:00
parent d3d8597782
commit 8771463957
+2 -2
View File
@@ -172,7 +172,7 @@ static int finish_item(
r = ordered_hashmap_update(h, i, combined);
if (r < 0)
return r;
return log_error_errno(r, "Failed to update catalog item: %m");
TAKE_PTR(combined);
free(prev);
@@ -184,7 +184,7 @@ static int finish_item(
r = ordered_hashmap_put(h, i, combined);
if (r < 0)
return r;
return log_error_errno(r, "Failed to insert catalog item: %m");
TAKE_PTR(i);
TAKE_PTR(combined);