Github user SuJinpei commented on a diff in the pull request:
https://github.com/apache/trafodion/pull/1404#discussion_r162845411
--- Diff: core/conn/odb/src/odb.c ---
@@ -7080,7 +7080,7 @@ static void Oload(int eid)
mfl = (size_t) etab[eid].td[i].Osize;
/* Allocate field buffer */
- if ( (str = (char *)malloc (mfl + 128)) == (void *)NULL ) {
+ if ( (str = (char *)calloc (1, etab[eid].buffsz + 1)) == (void *)NULL
) {
--- End diff --
Hi Suresh
str will only be allocated one time for each loading thread.
---