netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=ac0211c3ee028a0146933b0338203bdf1fbdf39c

commit ac0211c3ee028a0146933b0338203bdf1fbdf39c
Author: Alastair Poole <[email protected]>
Date:   Tue Oct 27 13:26:03 2020 +0000

    asan: Fix a leak.
    
    :)
---
 src/bin/system/filesystems.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/system/filesystems.c b/src/bin/system/filesystems.c
index b7856a2..9bee224 100644
--- a/src/bin/system/filesystems.c
+++ b/src/bin/system/filesystems.c
@@ -170,7 +170,7 @@ File_System *
 file_system_info_get(const char *path)
 {
    File_System *fs;
-   const char *mountpoint;
+   char *mountpoint;
    struct statfs stats;
 
    mountpoint = disk_mount_point_get(path);
@@ -180,7 +180,7 @@ file_system_info_get(const char *path)
      return NULL;
 
    fs = calloc(1, sizeof(File_System));
-   fs->mount = strdup(mountpoint);
+   fs->mount = mountpoint;
    fs->path  = strdup(path);
 
 #if defined(__OpenBSD__)

-- 


Reply via email to