summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorSujatha Sivakumar <sujatha.sivakumar@oracle.com>2012-07-10 14:37:35 +0530
committerSujatha Sivakumar <sujatha.sivakumar@oracle.com>2012-07-10 14:37:35 +0530
commit94d68d30bf45f14f7cfc56fd67f196821019efd1 (patch)
treeafa3cece38781f7a02d767695e524a0b1229c945 /mysys
parent556a508f4a2335798a912a4028adc3fdf93bc908 (diff)
parentcf858b71ce0cc18909983d7f928a6961a580d77b (diff)
downloadmariadb-git-94d68d30bf45f14f7cfc56fd67f196821019efd1.tar.gz
merge from 5.1 to 5.5
Diffstat (limited to 'mysys')
-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 d0918fb5706..6339532fa16 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);
}