Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-06 04:00:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-06 04:00:37 +0300
commitc19d2f2507a45d2a6da35dbe2ff842f71c2daae0 (patch)
treee092f7aa5f8c619223638466065534af79e74072 /source/blender/editors
parent8574d68aa0ea123bf3f37ca36fd41b7dcf26403f (diff)
Cleanup: use MEM_recallocN_id
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_console/console_ops.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c
index 278981d2091..122634f86ba 100644
--- a/source/blender/editors/space_console/console_ops.c
+++ b/source/blender/editors/space_console/console_ops.c
@@ -233,11 +233,7 @@ static void console_line_verify_length(ConsoleLine *ci, int len)
#else
int new_len = (len + 1) * 2;
#endif
- char *new_line = MEM_callocN(new_len, "console line");
- memcpy(new_line, ci->line, ci->len);
- MEM_freeN(ci->line);
-
- ci->line = new_line;
+ ci->line = MEM_recallocN_id(ci->line, new_len, "console line");
ci->len_alloc = new_len;
}
}