summaryrefslogtreecommitdiffabout
path: root/src/triplet.c
Side-by-side diff
Diffstat (limited to 'src/triplet.c') (more/less context) (show whitespace changes)
-rw-r--r--src/triplet.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/triplet.c b/src/triplet.c
index 3083c64..9dfdf2c 100644
--- a/src/triplet.c
+++ b/src/triplet.c
@@ -62,2 +62,3 @@ hash_triplet_free (void *data)
struct uploader_info *next = up->next;
+ free (up->fpr);
free (up);
@@ -96,3 +97,3 @@ register_file (struct file_info *finfo, const struct spool *spool)
- key.name = xmalloc (finfo->root_len + 1);
+ key.name = grecs_malloc (finfo->root_len + 1);
memcpy (key.name, finfo->name, finfo->root_len);
@@ -380,3 +381,3 @@ format_file_data (struct file_triplet *trp, enum file_type type, char **pret)
if (grecs_asprintf (&sptr, &slen, "%lu", (unsigned long) info->sb.st_size))
- xalloc_die ();
+ grecs_alloc_die ();
@@ -393,3 +394,3 @@ format_file_data (struct file_triplet *trp, enum file_type type, char **pret)
timebuf, info->name))
- xalloc_die ();
+ grecs_alloc_die ();
free (sptr);
@@ -413,3 +414,3 @@ expand_triplet_ls_full (struct metadef *def, void *data)
- def->value = def->storage = xmalloc (size + 1);
+ def->value = def->storage = grecs_malloc (size + 1);
def->value[0] = 0;
@@ -448,3 +449,3 @@ expand_triplet_ls_upload (struct metadef *def, void *data)
- def->value = def->storage = xmalloc (size + 1);
+ def->value = def->storage = grecs_malloc (size + 1);
def->value[0] = 0;
@@ -554,3 +555,3 @@ expand_email_user (struct metadef *def, void *data)
trp->uploader->realname, trp->uploader->email))
- xalloc_die ();
+ grecs_alloc_die ();
def->value = def->storage;
@@ -596,3 +597,3 @@ expand_check_result (struct metadef *def, void *data)
"%d", WEXITSTATUS (status)))
- xalloc_die ();
+ grecs_alloc_die ();
}
@@ -604,3 +605,3 @@ expand_check_result (struct metadef *def, void *data)
WTERMSIG (status)))
- xalloc_die ();
+ grecs_alloc_die ();
}

Return to:

Send suggestions and report system problems to the System administrator.