From: Simon Wilkinson Date: Sat, 31 Mar 2012 19:13:49 +0000 (-0400) Subject: vol-dump: Don't leak memory X-Git-Tag: openafs-stable-1_8_0pre1~2588 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=39bdcebad71cf4c7636e7c1007f228dbd36510cb;hp=1b4d2b53ccb4bece0c5be78fa87ba085f070bdf5 vol-dump: Don't leak memory Don't leak a Volume structure everytime we call HandleVolume Caught by clang-analyzer Change-Id: Id8cf79dd2178b8647d88f0765ec4ad9d327a23ae Reviewed-on: http://gerrit.openafs.org/7104 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/volser/vol-dump.c b/src/volser/vol-dump.c index 889d2c9..16eaf35 100644 --- a/src/volser/vol-dump.c +++ b/src/volser/vol-dump.c @@ -253,6 +253,8 @@ HandleVolume(struct DiskPartition64 *dp, char *name, char *filename, int fromtim } DoMyVolDump(vp, dp, filename, fromtime); + + free(vp); }