diff options
| author | Gary Lin <glin@suse.com> | 2016-09-07 16:54:27 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2016-09-09 12:07:26 -0400 |
| commit | 903674a2c407d6c5de53e3ef860f36f4a6740ce8 (patch) | |
| tree | 712802e7e4e1e6410f42aebf54888a4ade8c1ef3 | |
| parent | e21068b499c9fa4e75e84c0e0223dfb0575219e3 (diff) | |
| download | efi-boot-shim-903674a2c407d6c5de53e3ef860f36f4a6740ce8.tar.gz efi-boot-shim-903674a2c407d6c5de53e3ef860f36f4a6740ce8.zip | |
MokManager: free new_data after use
new_data in write_db() wasn't freed after SetVariable.
Signed-off-by: Gary Lin <glin@suse.com>
| -rw-r--r-- | MokManager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MokManager.c b/MokManager.c index 039a7474..20db532f 100644 --- a/MokManager.c +++ b/MokManager.c @@ -916,6 +916,10 @@ out: FreePool(old_data); } + if (new_data != NULL) { + FreePool(new_data); + } + return status; } |
