Skip to content

Commit 6fe882c

Browse files
erichermangrooverdan
authored andcommitted
Add my_afree after my_alloca in early return case
The code already had a call to `my_afree` in the normal return case, but failed to do so in the early return case.
1 parent 0ddbec4 commit 6fe882c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/mysql.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,7 +3598,10 @@ print_table_data(MYSQL_RES *result)
35983598
{
35993599
print_field_types(result);
36003600
if (!mysql_num_rows(result))
3601+
{
3602+
my_afree((uchar*) num_flag);
36013603
return;
3604+
}
36023605
mysql_field_seek(result,0);
36033606
}
36043607
separator.copy("+",1,charset_info);

0 commit comments

Comments
 (0)