Hi Jes, The first one cleans up resource when load_devices returns fail, and the second patch fixes double free issue. Thanks, Guoqing Guoqing Jiang (2): Assemble: free resources in load_devices Assemble: set devices to NULL when load_devices can't load device Assemble.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.13.6