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:
Garrett Wollman 2012-07-15 14:54:47 -04:00 committed by Derrick Brashear
parent 53c432d1fe
commit 0527cc7930

View File

@ -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 )