]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix free() call on error
authorKarel Zak <kzak@redhat.com>
Sat, 21 Sep 2019 09:16:34 +0000 (11:16 +0200)
committerKarel Zak <kzak@redhat.com>
Sat, 21 Sep 2019 09:16:34 +0000 (11:16 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/utils.c

index ea154f2940d0139a6a1c769dddf59378c478a1fe..1cd8329fccd4b6f6f8502e72bfc3d8491758b1ae 100644 (file)
@@ -1255,7 +1255,7 @@ FILE *mnt_get_procfs_memstream(int fd, char **membuf)
                if (memf)
                        return memf;    /* success */
 
-               free(membuf);
+               free(*membuf);
                *membuf = NULL;
        }