Skip to content

Commit c82af92

Browse files
committed
sentry_malloc -> SENTRY_MAKE
1 parent 7201536 commit c82af92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sentry_scope.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "sentry_scope.h"
2+
#include "sentry_alloc.h"
23
#include "sentry_backend.h"
34
#include "sentry_core.h"
45
#include "sentry_database.h"
@@ -155,7 +156,7 @@ sentry__scope_flush_unlock(void)
155156
sentry_scope_t *
156157
sentry_local_scope_new(void)
157158
{
158-
sentry_scope_t *scope = sentry_malloc(sizeof(sentry_scope_t));
159+
sentry_scope_t *scope = SENTRY_MAKE(sentry_scope_t);
159160
if (!scope) {
160161
return NULL;
161162
}

0 commit comments

Comments
 (0)