From: Dave Airlie <[email protected]>

Pointed out by coverity scan.

Signed-off-by: Dave Airlie <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to