MAPREDUCE-3914. Mismatched free() / delete / delete [] in HadoopPipes (Joe Mudd via aw)

This commit is contained in:
Allen Wittenauer 2015-11-05 16:50:55 -08:00
parent 286cc6483f
commit fc7cd46faf
2 changed files with 6 additions and 2 deletions

View File

@ -120,6 +120,7 @@ Trunk (Unreleased)
BUG FIXES
MAPREDUCE-6191. Improve clearing stale state of Java serialization
testcase. (Sam Liu via Eric Yang)
@ -168,6 +169,9 @@ Trunk (Unreleased)
MAPREDUCE-4695. Fix LocalRunner on trunk after MAPREDUCE-3223 broke it
(harsh)
MAPREDUCE-3914. Mismatched free() / delete / delete [] in HadoopPipes
(Joe Mudd via aw)
MAPREDUCE-4574. Fix TotalOrderParitioner to work with
non-WritableComparable key types. (harsh)

View File

@ -1169,8 +1169,8 @@ namespace HadoopPipes {
if (outStream != NULL) {
//fclose(outStream);
}
delete bufin;
delete bufout;
delete[] bufin;
delete[] bufout;
return true;
} catch (Error& err) {
fprintf(stderr, "Hadoop Pipes Exception: %s\n",