cl_utils: Fix memory leak.

This commit is contained in:
Uwe Bonnes 2020-04-22 18:18:22 +02:00
parent 815e09bb1b
commit c5d0902d4c
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ int cl_execute(BMP_CL_OPTIONS_t *opt)
target_reset(t);
} else {
#define WORKSIZE 1024
uint8_t *data = malloc(WORKSIZE);
uint8_t *data = alloca(WORKSIZE);
if (!data) {
printf("Can not malloc memory for flash read/verify operation\n");
return res;