vmstat: free before return

Previous commit the free was added after the return. That doesn't
work as planned.

References:
 commit 6151b794c6
This commit is contained in:
Craig Small 2016-05-03 21:57:00 +10:00
parent 19a515e314
commit 55f7dd0648

View File

@ -464,8 +464,8 @@ static int diskpartition_format(const char *partition_name)
if (infinite_updates || i+1 < num_updates) if (infinite_updates || i+1 < num_updates)
sleep(sleep_time); sleep(sleep_time);
} }
return 0;
procps_diskstat_unref(&disk_stat); procps_diskstat_unref(&disk_stat);
return 0;
} }
static void diskheader(void) static void diskheader(void)