summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache2.c
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2012-08-14 12:42:14 -0700
committerIgor Babaev <igor@askmonty.org>2012-08-14 12:42:14 -0700
commit822e5da0d069e6567713464e7492097fab33e55d (patch)
treeacfd13bd545ee4d5fe2209922827588be09b6e42 /mysys/mf_iocache2.c
parent3116e3ad6164c96edc2a27c3438f325c4dc464f3 (diff)
parent7cc2f8decabe83fb304458748ba907f011848309 (diff)
downloadmariadb-git-822e5da0d069e6567713464e7492097fab33e55d.tar.gz
Merge 5.5->5.5-mwl248
Diffstat (limited to 'mysys/mf_iocache2.c')
-rw-r--r--mysys/mf_iocache2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mysys/mf_iocache2.c b/mysys/mf_iocache2.c
index 3c23d0737e7..6c7cd9a7e84 100644
--- a/mysys/mf_iocache2.c
+++ b/mysys/mf_iocache2.c
@@ -433,7 +433,11 @@ process_flags:
memset(buffz, '0', minimum_width - length2);
else
memset(buffz, ' ', minimum_width - length2);
- my_b_write(info, buffz, minimum_width - length2);
+ if (my_b_write(info, buffz, minimum_width - length2))
+ {
+ my_afree(buffz);
+ goto err;
+ }
my_afree(buffz);
}