mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
util: in util_newTable, don't leak Table on error
It is unlikely that this memory leak actually matters as the caller will normally just exit. This whole source file could stand to be reformatted. Change-Id: Ic5cb52a73ac09ae492c6e6ab606dfaf92a1ab8bf Reviewed-on: http://gerrit.openafs.org/7767 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
53c432d1fe
commit
0527cc7930
@ -369,6 +369,7 @@ util_newTable(int Type, int numColumns, char **ColumnHeaders, int *ColumnContent
|
||||
if (sortByColumn < 0 || sortByColumn > numColumns) {
|
||||
fprintf(stderr,"Invalid Table Sortkey: %d.\n", sortByColumn);
|
||||
errno=EINVAL;
|
||||
free(Table);
|
||||
return NULL;
|
||||
}
|
||||
if (sortByColumn > 0 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user