summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2020-02-13 17:34:57 +0900
committerHyotaek Shim <hyotaek.shim@samsung.com>2020-02-13 08:44:37 +0000
commit01e200e113a003f017dd78ff4eff0c66a09481bd (patch)
treec057f02ca9c87d18e8bfe626866bcb92b7c2dac2
parent5f1e01fc477365d14b1d6fabb9cd750df52fa3b1 (diff)
downloaddevice-manager-plugin-artik-01e200e113a003f017dd78ff4eff0c66a09481bd.tar.gz
device-manager-plugin-artik-01e200e113a003f017dd78ff4eff0c66a09481bd.tar.bz2
device-manager-plugin-artik-01e200e113a003f017dd78ff4eff0c66a09481bd.zip
Fix coverity issue
CID 1095159 (#1 of 1): Resource leak (RESOURCE_LEAK) Change-Id: I185433f9079dbffa69f8b2673fdbe380f1a60804 Signed-off-by: Youngjae Cho <y0.cho@samsung.com> (cherry picked from commit 74fcdd2aa28ea28cd6c91a26673d859fcbad7ebf)
-rw-r--r--hw/board/board.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/board/board.c b/hw/board/board.c
index 3c6b42d..4f73ea7 100644
--- a/hw/board/board.c
+++ b/hw/board/board.c
@@ -45,6 +45,7 @@ static int get_device_serial(char **out)
}
*out = p;
+ free(line);
return 0;
}