mirror of
https://github.com/php/php-src.git
synced 2025-01-25 13:14:22 +08:00
- Fixed possible efree(NULL)
This commit is contained in:
parent
a2ce3456c7
commit
faadae148b
@ -1713,7 +1713,9 @@ static void _php_pgsql_free_params(char **params, int num_params)
|
||||
if (num_params > 0) {
|
||||
int i;
|
||||
for (i = 0; i < num_params; i++) {
|
||||
efree(params[i]);
|
||||
if (params[i]) {
|
||||
efree(params[i]);
|
||||
}
|
||||
}
|
||||
efree(params);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user