flowtop: close dir handle first before returning back
commit2df71cfbeea516523894ad63be9da5c1839ef082
authorDaniel Borkmann <dborkman@redhat.com>
Sat, 16 Mar 2013 12:45:25 +0000 (16 13:45 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Sat, 16 Mar 2013 12:45:25 +0000 (16 13:45 +0100)
tree959b9da1fd4ecc7882df68da6b7a636c7e5dd5f3
parentc69b4960fa4f48fcc7bd320bc34e4fc8de613bdc
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>
flowtop.c