forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite42e2f3
committed
PL/Python: Fix potential NULL pointer dereference
Afterd0aa965, one error path inPLy_spi_execute_fetch_result() could result in the variable "result"being dereferenced after being set to NULL. To fix that, just clear theresources right there and return early.Also add another SPI_freetuptable() call so that that is cleared in allerror paths.discovered by John Naylor <jcnaylor@gmail.com> via scan-build1 parent7b88d63 commite42e2f3
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
| 364 | + | |
| 365 | + | |
364 | 366 |
| |
| 367 | + | |
365 | 368 |
| |
366 | 369 |
| |
367 | 370 |
| |
| |||
414 | 417 |
| |
415 | 418 |
| |
416 | 419 |
| |
417 |
| - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
418 | 423 |
| |
419 | 424 |
| |
420 | 425 |
| |
|
0 commit comments
Comments
(0)