Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
bmax committed Mar 7, 2024
1 parent f0f2084 commit bd1bb32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ int patch_update_img(const char *kimg_path, const char *kpimg_path, const char *

patch_extra_item_t *item = NULL;
if (config->is_path) {
patch_extra_item_t _item = { 0 };
item = &_item;
// todo: free
item = (patch_extra_item_t *)malloc(sizeof(patch_extra_item_t));
memset(item, 0, sizeof(patch_extra_item_t));
const char *path = config->path;
char *data;
int len = 0;
Expand Down

0 comments on commit bd1bb32

Please sign in to comment.