diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2014-04-26 16:12:03 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-04-26 16:12:03 +0000 |
commit | b879287c4275d324d21475bf14e66a20288ef3b6 (patch) | |
tree | 0f76d142e1153c8274a08ff44157366d11130e7d | |
parent | a9c23427918159f5ddae861d9b6b30970e95fd34 (diff) | |
download | ast2050-flashrom-b879287c4275d324d21475bf14e66a20288ef3b6.zip ast2050-flashrom-b879287c4275d324d21475bf14e66a20288ef3b6.tar.gz |
CID1130009: Resource leak in sp_opensocket()
Corresponding to flashrom svn r1775.
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
-rw-r--r-- | serprog.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -100,6 +100,7 @@ static int sp_opensocket(char *ip, unsigned int port) if (NULL == hostPtr) { hostPtr = gethostbyaddr(ip, strlen(ip), AF_INET); if (NULL == hostPtr) { + close(sock); msg_perr("Error: cannot resolve %s\n", ip); return -1; } |