summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/grep.c b/grep.c
index b9adcd8..f96d86c 100644
--- a/grep.c
+++ b/grep.c
@@ -45,7 +45,8 @@ static pcre2_general_context *pcre2_global_context;
static void *pcre2_malloc(PCRE2_SIZE size, MAYBE_UNUSED void *memory_data)
{
- return malloc(size);
+ void *pointer = malloc(size);
+ return pointer;
}
static void pcre2_free(void *pointer, MAYBE_UNUSED void *memory_data)