diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-11-11 17:01:28 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-12-18 11:15:58 +1100 |
commit | 45e64e9fbeae206997d347b479e697da2ee53ac5 (patch) | |
tree | e6869b9e56183355d0aed747a3a4f8f4c6733925 /discover/parser.c | |
parent | 8cfcec4279b229dacfb0589bc443f8a4cbd83082 (diff) | |
download | talos-petitboot-45e64e9fbeae206997d347b479e697da2ee53ac5.tar.gz talos-petitboot-45e64e9fbeae206997d347b479e697da2ee53ac5.zip |
discover: Add two missing talloc_free()s
Fixes Coverity defects #30474 and #30475
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'discover/parser.c')
-rw-r--r-- | discover/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/parser.c b/discover/parser.c index 7833981..8e767c6 100644 --- a/discover/parser.c +++ b/discover/parser.c @@ -62,6 +62,7 @@ int parser_check_dir(struct discover_context *ctx, path = local_path(ctx, dev, dirname); rc = stat(path, &statbuf); + talloc_free(path); if (!rc) return -1; |