From: Simos Xenitellis Date: Tue, 15 May 2018 00:05:13 +0000 (+0000) Subject: coverity: #1248106 X-Git-Tag: lxc-2.0.10~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db946a0a4f28bfc440e99f0a359098ca25adea2;p=thirdparty%2Flxc.git coverity: #1248106 Resource leak Signed-off-by: Simos Xenitellis --- diff --git a/src/lxc/network.c b/src/lxc/network.c index 889615af3..863bb9635 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -537,7 +537,8 @@ static char * is_wlan(const char *ifname) fseek(f, 0, SEEK_END); physlen = ftell(f); fseek(f, 0, SEEK_SET); - physname = malloc(physlen+1); + + physname = malloc(physlen + 1); if (!physname) { fclose(f); goto bad;