Fix coverity issue 23/224823/1
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 13 Feb 2020 08:34:57 +0000 (17:34 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 13 Feb 2020 08:35:43 +0000 (17:35 +0900)
CID 1095159 (#1 of 1): Resource leak (RESOURCE_LEAK)

Change-Id: I185433f9079dbffa69f8b2673fdbe380f1a60804
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
hw/board/board.c

index 3c6b42d..4f73ea7 100644 (file)
@@ -45,6 +45,7 @@ static int get_device_serial(char **out)
        }
 
        *out = p;
+       free(line);
        return 0;
 }