Bug 6400 - [PATCH] Memory leaks in nsswitch/winbind_nss_aix.c
Summary: [PATCH] Memory leaks in nsswitch/winbind_nss_aix.c
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All AIX
: P3 trivial (vote)
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Andrew Bartlett
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-23 09:06 UTC by Slava Semushin
Modified: 2009-05-25 09:16 UTC (History)
0 users

See Also:


Attachments
Fix for possible memory leaks in nsswitch/winbind_nss_aix.c (886 bytes, patch)
2009-05-23 09:08 UTC, Slava Semushin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slava Semushin 2009-05-23 09:06:55 UTC
Hello!

Memory leaks in fill_grent() when calloc() fails, in this case function return NULL but not free memory allocated before.

Patch will be attached.
Comment 1 Slava Semushin 2009-05-23 09:08:28 UTC
Created attachment 4196 [details]
Fix for possible memory leaks in nsswitch/winbind_nss_aix.c

Proposal fix.
Comment 2 Volker Lendecke 2009-05-25 09:16:16 UTC
Pushed with 95dbd7d6dc, thanks!

Volker