Fix wrong malloc error message

This commit is contained in:
Rodrigo Arias 2023-03-13 17:42:04 +01:00 committed by Rodrigo Arias Mallo
parent 6deef0308a
commit eaafd916be

View File

@ -58,7 +58,7 @@ create_proc(struct loom *loom, const char *tracedir, const char *relpath)
proc = malloc(sizeof(struct proc));
if (proc == NULL) {
err("calloc failed:");
err("malloc failed:");
return NULL;
}
@ -120,7 +120,7 @@ create_loom(struct system *sys, const char *relpath)
loom = malloc(sizeof(struct loom));
if (loom == NULL) {
err("calloc failed:");
err("malloc failed:");
return NULL;
}