Skip to content

Commit bd1bb32

Browse files
author
bmax
committed
a
1 parent f0f2084 commit bd1bb32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/patch.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,9 @@ int patch_update_img(const char *kimg_path, const char *kpimg_path, const char *
327327

328328
patch_extra_item_t *item = NULL;
329329
if (config->is_path) {
330-
patch_extra_item_t _item = { 0 };
331-
item = &_item;
330+
// todo: free
331+
item = (patch_extra_item_t *)malloc(sizeof(patch_extra_item_t));
332+
memset(item, 0, sizeof(patch_extra_item_t));
332333
const char *path = config->path;
333334
char *data;
334335
int len = 0;

0 commit comments

Comments
 (0)