]> git.proxmox.com Git - mirror_lxcfs.git/blobdiff - bindings.c
bindings: fix memory leak in calc_pid()
[mirror_lxcfs.git] / bindings.c
index 4b6f51b07377eeb243b8233ffbea498e713153ae..4ecd2753608e2302a30a26c4631d00085611d69a 100644 (file)
@@ -4521,6 +4521,8 @@ static int calc_pid(char ***pid_buf, char *dpath, int depth, int sum, int cfd)
        }
        fclose(f);
 out:
+       if (line)
+               free(line);
        free(path);
        return sum;
 }