We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7201536 commit c82af92Copy full SHA for c82af92
src/sentry_scope.c
@@ -1,4 +1,5 @@
1
#include "sentry_scope.h"
2
+#include "sentry_alloc.h"
3
#include "sentry_backend.h"
4
#include "sentry_core.h"
5
#include "sentry_database.h"
@@ -155,7 +156,7 @@ sentry__scope_flush_unlock(void)
155
156
sentry_scope_t *
157
sentry_local_scope_new(void)
158
{
- sentry_scope_t *scope = sentry_malloc(sizeof(sentry_scope_t));
159
+ sentry_scope_t *scope = SENTRY_MAKE(sentry_scope_t);
160
if (!scope) {
161
return NULL;
162
}
0 commit comments