mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
tabular_output: don't leak table struct on error exit
The caller is almost certainly going to exit when we return, but all the same, don't leak the table description structure in the error exit. Makes the static analyzer happier. Change-Id: I55e986a3601968751921ee38badf5bb86cd3174f Reviewed-on: http://gerrit.openafs.org/7870 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com> Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
ff217dec93
commit
93aa733909
@ -399,6 +399,7 @@ util_newTable(int Type, int numColumns, char **ColumnHeaders, int *ColumnContent
|
||||
break;
|
||||
default :
|
||||
fprintf(stderr,"Error. Invalid TableType: %d.\n", Table->Type);
|
||||
free(Table);
|
||||
errno=EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user