[SSSD] [PATCHES] Two resource leaks discovered by coverity

Jan Zeleny jzeleny at redhat.com
Fri Nov 4 10:43:02 UTC 2011


Jakub Hrozek <jhrozek at redhat.com> wrote:
> On Fri, Nov 04, 2011 at 09:24:55AM +0100, Jan Zeleny wrote:
> > https://fedorahosted.org/sssd/ticket/1069
> > https://fedorahosted.org/sssd/ticket/1071
> > 
> > --
> > Jan
> 
> 001: ack
> 002: nack, if talloc_asprintf() failed, close() would attempt to close a
> random-valued fd

Ah, you're right. Similar situation would occur if open() failed.

The second round of patches attached

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jzeleny-066-Fixed-possible-resource-leak-in-get_uid_from_pid.patch
Type: text/x-patch
Size: 1735 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20111104/6095e161/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jzeleny-067-1-Fixed-possible-resource-leak-in-create_mail_spool.patch
Type: text/x-patch
Size: 1558 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20111104/6095e161/attachment-0001.bin>


More information about the sssd-devel mailing list