diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2023-02-19 10:52:43 +0800 |
---|---|---|
committer | Fred Reitberger <reitbergerfred@gmail.com> | 2023-02-24 13:42:23 +0000 |
commit | 71e752b9347ff63360c03ffa14b78beead20a96d (patch) | |
tree | e07e04882384a7c2ffeff40e914603c258a0ad6b /util/amdfwtool | |
parent | 9072333883b497a8e77a7472ac4d666049ed6863 (diff) |
amdfwtool: Remove the useless variable "rom"
Now we use ctx.rom. Remove the wrong statement releasing null
pointer.
Change-Id: I134335ed741dc067e232621106f2057e50ba6a1a
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73118
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'util/amdfwtool')
-rw-r--r-- | util/amdfwtool/amdfwtool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index ac25bd2087..7e38a6a858 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -2056,7 +2056,6 @@ int main(int argc, char **argv) int c; int retval = 0; char *tmp; - char *rom = NULL; embedded_firmware *amd_romsig; psp_directory_table *pspdir = NULL; psp_directory_table *pspdir2 = NULL; @@ -2641,6 +2640,6 @@ int main(int argc, char **argv) } } - free(rom); + free(ctx.rom); return retval; } |