chiark / gitweb /
core: use correct function to free CalendarSpec
authorDave Reisner <dreisner@archlinux.org>
Sat, 13 Sep 2014 15:18:26 +0000 (11:18 -0400)
committerDave Reisner <dreisner@archlinux.org>
Sat, 13 Sep 2014 15:18:26 +0000 (11:18 -0400)
src/core/load-fragment.c

index 78da23ea57d864f23cba5a92b38a8094a6dba622..7cf19b93ccb847a34ea320e4475bc240e2d025a2 100644 (file)
@@ -1369,7 +1369,7 @@ int config_parse_timer(const char *unit,
         v = new0(TimerValue, 1);
         if (!v) {
                 if (c)
-                        free(c);
+                        calendar_spec_free(c);
                 return log_oom();
         }