fix use of uninitialized memory in malloc failure handling code path
This commit is contained in:
parent
a42ac047af
commit
136d9d1d45
|
@ -374,7 +374,7 @@ ladish_room_save_project(
|
|||
if (ctx_ptr == NULL)
|
||||
{
|
||||
log_error("malloc() failed to allocate memory for room save context struct");
|
||||
ctx_ptr->callback(ctx_ptr->context, false);
|
||||
callback(context, false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue