Skip to content

Commit 140ce55

Browse files
author
Mikhail Galanin
committed
Avoid using uninitialised struct
1 parent 81faab9 commit 140ce55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqlnd/mysqlnd_result.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ mysqlnd_query_read_result_set_header(MYSQLND_CONN_DATA * conn, MYSQLND_STMT * s)
344344
}
345345
MYSQLND_INC_CONN_STATISTIC(conn->stats, statistic);
346346
}
347+
PACKET_FREE(&fields_eof);
347348
} while (0);
348-
PACKET_FREE(&fields_eof);
349349
break; /* switch break */
350350
}
351351
} while (0);

0 commit comments

Comments
 (0)