Bug 6566 - [PATCH] source4/lib/registry/patchfile.c: possible file descriptor leak
[PATCH] source4/lib/registry/patchfile.c: possible file descriptor leak
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: Other
unspecified
All All
: P3 minor
: ---
Assigned To: Andrew Bartlett
Matthias Dieter Wallnöfer
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-18 11:34 UTC by Slava Semushin
Modified: 2009-07-20 02:13 UTC (History)
0 users

See Also:


Attachments
Proposal fix (946 bytes, patch)
2009-07-18 11:34 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-07-18 11:34:23 UTC
Hello!

cppcheck found possible resource leak in function reg_diff_load(): leak occurs when read(2) fails.

Patch in attach.
Comment 1 Slava Semushin 2009-07-18 11:34:59 UTC
Created attachment 4445 [details]
Proposal fix
Comment 2 Matthias Dieter Wallnöfer 2009-07-20 02:13:23 UTC
Fixed in branch "master".