[asterisk-dev] [Code Review] 3141: res_config_pgsql: Make sure PQClear is used for all PGResults

opticron reviewboard at asterisk.org
Thu Jan 23 14:33:53 CST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3141/#review10669
-----------------------------------------------------------

Ship it!


Ship It!

- opticron


On Jan. 20, 2014, 11:41 a.m., Jonathan Rose wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3141/
> -----------------------------------------------------------
> 
> (Updated Jan. 20, 2014, 11:41 a.m.)
> 
> 
> Review request for Asterisk Developers and Mark Michelson.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> Updates most PGResult setting to use RAII_VAR and uses PQCLEAR as the cleanup function. I checked the PGSQL library source and this function is NULL safe so it doesn't appear to need a wrapper.
> 
> There was one location previously which had a PGResult being set without any call to PQClear.
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/res/res_config_pgsql.c 405858 
> 
> Diff: https://reviewboard.asterisk.org/r/3141/diff/
> 
> 
> Testing
> -------
> 
> Made Asterisk use res_config_pgsql to perform some queries for queues and queue members.  Made sure it didn't crash.
> 
> 
> Thanks,
> 
> Jonathan Rose
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140123/933f684a/attachment.html>


More information about the asterisk-dev mailing list