We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb3559b + d992cd8 commit 9282111Copy full SHA for 9282111
ext/pgsql/pgsql.c
@@ -1225,15 +1225,13 @@ PHP_FUNCTION(pg_query)
1225
1226
static void _php_pgsql_free_params(char **params, int num_params)
1227
{
1228
- if (num_params > 0) {
1229
- int i;
1230
- for (i = 0; i < num_params; i++) {
1231
- if (params[i]) {
1232
- efree(params[i]);
1233
- }
+ int i;
+ for (i = 0; i < num_params; i++) {
+ if (params[i]) {
+ efree(params[i]);
1234
}
1235
- efree(params);
1236
+ efree(params);
1237
1238
1239
/* Execute a query */
0 commit comments