[PATCH 08/12] hal: free tmp_val in one missing case

Dave Airlie airlied at gmail.com
Thu Oct 20 03:44:24 PDT 2011


From: Dave Airlie <airlied at redhat.com>

Pointed out by coverity scan.

Signed-off-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Daniel Stone <daniel at fooishbar.org>
---
 config/hal.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/config/hal.c b/config/hal.c
index aa234eb..088c993 100644
--- a/config/hal.c
+++ b/config/hal.c
@@ -348,6 +348,7 @@ device_added(LibHalContext *hal_ctx, const char *udi)
                         if (!strcasecmp(tmp, ".options") && (!xkb_opts.options))
                             xkb_opts.options = strdup(tmp_val);
                     }
+                    free(tmp_val);
                 }
             }
         }
-- 
1.7.6.4



More information about the xorg-devel mailing list