buf += HEAD_SIZE; /* Increment to user data start */
V(mutex);
}
- sm_check(fname, lineno, True);
Dmsg4(1150, "smalloc %d at %x from %s:%d\n", nbytes, buf, fname, lineno);
return (void *)buf;
}
char *cp = (char *) fp;
struct b_queue *qp;
- sm_check(__FILE__, __LINE__, True);
if (cp == NULL) {
Emsg2(M_ABORT, 0, "Attempt to free NULL called from %s:%d\n", file, line);
}
char *cp = (char *) ptr;
Dmsg4(400, "sm_realloc %s:%d 0x%x %d\n", fname, lineno, ptr, size);
- sm_check(fname, lineno, True);
if (size <= 0) {
e_msg(fname, lineno, M_ABORT, 0, "sm_realloc size: %d\n", size);
}
sm_free(__FILE__, __LINE__, ptr);
}
Dmsg4(150, "sm_realloc %d at %x from %s:%d\n", size, buf, fname, lineno);
- sm_check(fname, lineno, True);
return buf;
}