File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ static void print_struct_persistent_class(
224
224
/* Make a copy to ensure proper alignment. We cannot just copy data to a
225
225
* local PersistentClassInfo variable because it contains a
226
226
* variable-length string at the end (see the struct definition). */
227
- PersistentClassInfo * class_info = malloc (value .mv_size );
227
+ PersistentClassInfo * class_info = xmalloc (value .mv_size );
228
228
memcpy (class_info , value .mv_data , value .mv_size );
229
229
const unsigned int expires = class_info -> expires ;
230
230
const PersistentClassPolicy policy = class_info -> policy ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ static CfLockStack *LOCK_STACK = NULL;
84
84
85
85
static void PushLock (char * lock , char * last )
86
86
{
87
- CfLockStack * new_lock = malloc (sizeof (CfLockStack ));
87
+ CfLockStack * new_lock = xmalloc (sizeof (CfLockStack ));
88
88
strlcpy (new_lock -> lock , lock , CF_BUFSIZE );
89
89
strlcpy (new_lock -> last , last , CF_BUFSIZE );
90
90
You can’t perform that action at this time.
0 commit comments