- Notifications
You must be signed in to change notification settings - Fork28
Commit273b29d
committed
Clean up Create/DropReplicationSlot query buffer
CreateReplicationSlot() and DropReplicationSlot() were not cleaning upthe query buffer in some cases (mostly error conditions) which meant asmall leak. Not generally an issue as the error case would result in animmediate exit, but not difficult to fix either and reduces the numberof false positives from code analyzers.In passing, also add appropriate PQclear() calls to RunIdentifySystem().Pointed out by Coverity.1 parentd9f38c7 commit273b29d
1 file changed
+22
-0
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| 254 | + | |
| 255 | + | |
254 | 256 |
| |
255 | 257 |
| |
256 | 258 |
| |
257 | 259 |
| |
258 | 260 |
| |
259 | 261 |
| |
260 | 262 |
| |
| 263 | + | |
| 264 | + | |
261 | 265 |
| |
262 | 266 |
| |
263 | 267 |
| |
| |||
277 | 281 |
| |
278 | 282 |
| |
279 | 283 |
| |
| 284 | + | |
| 285 | + | |
280 | 286 |
| |
281 | 287 |
| |
282 | 288 |
| |
| |||
331 | 337 |
| |
332 | 338 |
| |
333 | 339 |
| |
| 340 | + | |
| 341 | + | |
| 342 | + | |
334 | 343 |
| |
335 | 344 |
| |
336 | 345 |
| |
| |||
340 | 349 |
| |
341 | 350 |
| |
342 | 351 |
| |
| 352 | + | |
| 353 | + | |
| 354 | + | |
343 | 355 |
| |
344 | 356 |
| |
345 | 357 |
| |
| |||
353 | 365 |
| |
354 | 366 |
| |
355 | 367 |
| |
| 368 | + | |
| 369 | + | |
| 370 | + | |
356 | 371 |
| |
357 | 372 |
| |
358 | 373 |
| |
359 | 374 |
| |
360 | 375 |
| |
| 376 | + | |
361 | 377 |
| |
362 | 378 |
| |
363 | 379 |
| |
| |||
384 | 400 |
| |
385 | 401 |
| |
386 | 402 |
| |
| 403 | + | |
| 404 | + | |
| 405 | + | |
387 | 406 |
| |
388 | 407 |
| |
389 | 408 |
| |
| |||
393 | 412 |
| |
394 | 413 |
| |
395 | 414 |
| |
| 415 | + | |
| 416 | + | |
| 417 | + | |
396 | 418 |
| |
397 | 419 |
| |
398 | 420 |
| |
|
0 commit comments
Comments
(0)