summaryrefslogtreecommitdiff
path: root/isam
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-01-24 15:48:25 +0100
committerserg@serg.mylan <>2005-01-24 15:48:25 +0100
commit67ba2e367a2d21321ae58048d131ab39248dea00 (patch)
treed0b61b703f3c601368669e4acab45d7567a4669b /isam
parentb53757ba91f67885911f677d09a2757774998b7b (diff)
downloadmariadb-git-67ba2e367a2d21321ae58048d131ab39248dea00.tar.gz
fixes/cleanups according to Coverity report
Diffstat (limited to 'isam')
-rw-r--r--isam/sort.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/isam/sort.c b/isam/sort.c
index d22b0e648a0..5d13f8085d2 100644
--- a/isam/sort.c
+++ b/isam/sort.c
@@ -122,7 +122,10 @@ uint sortbuff_size;
MYF(0))))
break;
else
+ {
my_free((gptr) sort_keys,MYF(0));
+ sort_keys= 0;
+ }
}
old_memavl=memavl;
if ((memavl=memavl/4*3) < MIN_SORT_MEMORY && old_memavl > MIN_SORT_MEMORY)