fs: Free parent_dir later in lsmount and flushmount
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 19 Feb 2013 17:22:08 +0000 (17:22 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Sun, 24 Feb 2013 19:19:05 +0000 (11:19 -0800)
commit064f7ef2e8d8e2a7500ffdfe4d55d3ebc48f8226
tree940445150848ce19e0376c5f7b0e764666552c89
parentb6439fd4b0b381a2b2e33af5f0c76db1e72971bb
fs: Free parent_dir later in lsmount and flushmount

If lsmount or flushmount encounter an error, then they may include
the contents of parent_dir in their error message. However, in both
cases, this was freed a couple of lines earlier.

Just move the free() later, so that the contents of this variable
are still available.

Caught by clang-analyzer

Change-Id: Ideba52b7ba98f034baf923194007239a6cf0221f
Reviewed-on: http://gerrit.openafs.org/9193
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/venus/fs.c