tmpfiles: fix minor memory leak on error path
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 67060e5..cc5cbc3 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -2792,8 +2792,10 @@
                         return log_oom();
 
                 r = ordered_hashmap_put(h, i.path, existing);
-                if (r < 0)
+                if (r < 0) {
+                        free(existing);
                         return log_oom();
+                }
         }
 
         if (!GREEDY_REALLOC(existing->items, existing->allocated, existing->n_items + 1))