diff options
-rw-r--r-- | util/ectool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c index 4ea3b94815..d20e0acaad 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -8657,6 +8657,8 @@ int cmd_tp_frame_get(int argc, char* argv[]) if (data == NULL || r == NULL) { fprintf(stderr, "Couldn't allocate memory.\n"); + free(r); + free(data); return EC_ERROR_UNKNOWN; } |