diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-22 22:12:55 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-22 22:20:31 -0400 |
commit | 5054264d93bff2ad54d909d796e93f3081ee9703 (patch) | |
tree | 626cb03921882c90372e93a4684b56bb79d0bab0 /src/template.c | |
parent | 22e4934dc0184a2e50eb80d5890c1a16613ff821 (diff) | |
download | stasis-5054264d93bff2ad54d909d796e93f3081ee9703.tar.gz |
Error messages
Diffstat (limited to 'src/template.c')
-rw-r--r-- | src/template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/template.c b/src/template.c index e046350..72c045b 100644 --- a/src/template.c +++ b/src/template.c @@ -30,7 +30,7 @@ void tpl_register(char *key, char **ptr) { struct tpl_item *item = NULL; item = calloc(1, sizeof(*item)); if (!item) { - perror("unable to register tpl_item"); + SYSERROR("unable to register tpl_item for %s", key); exit(1); } item->key = strdup(key); @@ -47,7 +47,7 @@ void tpl_free() { SYSERROR("freeing template item key: %s", item->key); guard_free(item->key); } - free(item); + SYSERROR("freeing template item: %p", item); item->ptr = NULL; } guard_free(item); |