diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-03-16 13:45:25 +0100 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-03-16 13:45:25 +0100 |
commit | 2df71cfbeea516523894ad63be9da5c1839ef082 (patch) | |
tree | 959b9da1fd4ecc7882df68da6b7a636c7e5dd5f3 /flowtop.c | |
parent | c69b4960fa4f48fcc7bd320bc34e4fc8de613bdc (diff) |
flowtop: close dir handle first before returning back
Coverty detected that the variable "dir" going out of scope leaks the
storage it points to. Thus close the handle first!
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'flowtop.c')
-rw-r--r-- | flowtop.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -428,6 +428,7 @@ static int walk_process(char *process, struct flow_entry *n) panic("readlink error: %s\n", strerror(errno)); n->procnum = atoi(process); + closedir(dir); return 1; } } |