diff options
author | Daniel Lange <DLange@git.local> | 2021-10-15 09:03:05 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-10-15 09:03:05 +0200 |
commit | c733b3f6130c70e100c21c4f77d8fd48db80622c (patch) | |
tree | fac3278283232938169f928fd3d3ab641d5c6c8e /dragonflybsd/DragonFlyBSDProcessList.c | |
parent | 4582ae87a0a0675d0756b93dcda052c533cd2c96 (diff) | |
parent | 30ce3b4c264c51c98f280e88e23792ff7deb2317 (diff) | |
download | debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.gz debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.bz2 debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.zip |
Update upstream source from tag 'upstream/3.1.1'
Update to upstream version '3.1.1'
with Debian dir c4b5e8f6455cfd05bffdaed787e2ebf5c7d9a632
Diffstat (limited to 'dragonflybsd/DragonFlyBSDProcessList.c')
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcessList.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcessList.c b/dragonflybsd/DragonFlyBSDProcessList.c index 08e3d7b..e44c164 100644 --- a/dragonflybsd/DragonFlyBSDProcessList.c +++ b/dragonflybsd/DragonFlyBSDProcessList.c @@ -2,7 +2,7 @@ htop - DragonFlyBSDProcessList.c (C) 2014 Hisham H. Muhammad (C) 2017 Diederik de Groot -Released under the GNU GPLv2, see the COPYING file +Released under the GNU GPLv2+, see the COPYING file in the source distribution for its full text. */ @@ -333,6 +333,7 @@ static void DragonFlyBSDProcessList_updateProcessName(kvm_t* kd, const struct ki } char* cmdline = xMalloc(len); + char* at = cmdline; int end = 0; for (int i = 0; argv[i]; i++) { @@ -346,6 +347,8 @@ static void DragonFlyBSDProcessList_updateProcessName(kvm_t* kd, const struct ki *at = '\0'; Process_updateCmdline(proc, cmdline, 0, end); + + free(cmdline); } static inline void DragonFlyBSDProcessList_scanJails(DragonFlyBSDProcessList* dfpl) { |