From 8d3731a811e33e263920dd7c8ec63d02968cb56e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 20 Oct 2011 10:48:26 +0100 Subject: [PATCH] hal: free tmp_val in one missing case Pointed out by coverity scan. Signed-off-by: Dave Airlie Reviewed-by: Daniel Stone --- config/hal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/config/hal.c b/config/hal.c index aa234ebb4..088c9939d 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); } } }