diff options
-rw-r--r-- | src/util/u_process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/u_process.c b/src/util/u_process.c index a1667e78074..94c975df396 100644 --- a/src/util/u_process.c +++ b/src/util/u_process.c @@ -52,6 +52,10 @@ __getProgramName() static char *path; if (!path) + /* Note: realpath() allocates memory that we will keep around for + * the lifetime of the app, and then leak as the app closes. + * FIXME: we should find a way to clean this properly + */ path = realpath("/proc/self/exe", NULL); if (path && strncmp(path, program_invocation_name, strlen(path)) == 0) { |