[tracker-miners/wip/carlosg/coverity-fixes: 12/28] cli: Plug leak




commit 61859e29bc3ef2a6ef56a5c724c72bace4c2deba
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Oct 24 00:42:40 2021 +0200

    cli: Plug leak
    
    CID: #365657

 src/tracker/tracker-process.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/tracker/tracker-process.c b/src/tracker/tracker-process.c
index 4fa5f4d7b..40396578b 100644
--- a/src/tracker/tracker-process.c
+++ b/src/tracker/tracker-process.c
@@ -73,6 +73,7 @@ find_command (pid_t pid)
 
        proc_path = g_strdup_printf ("/proc/%d/exe", pid);
        len = readlink (proc_path, path, PATH_MAX);
+       g_free (proc_path);
 
        if (len < 0)
                return NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]