hal: free tmp_val in one missing case

Pointed out by coverity scan.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
(cherry picked from commit 8d3731a811)
This commit is contained in:
Dave Airlie 2011-10-20 10:48:26 +01:00 committed by Jeremy Huddleston
parent a10fbf0043
commit 703885a2f4
1 changed files with 1 additions and 0 deletions

View File

@ -355,6 +355,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);
}
}
}