Skip to content

Commit db418ff

Browse files
airliedjeremyhu
authored andcommitted
hal: free tmp_val in one missing case
Pointed out by coverity scan. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Daniel Stone <[email protected]> (cherry picked from commit 8d3731a)
1 parent 6b11b18 commit db418ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/hal.c

+1
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ device_added(LibHalContext *hal_ctx, const char *udi)
355355
if (!strcasecmp(tmp, ".options") && (!xkb_opts.options))
356356
xkb_opts.options = strdup(tmp_val);
357357
}
358+
free(tmp_val);
358359
}
359360
}
360361
}

0 commit comments

Comments
 (0)