Bug 6566 - [PATCH] source4/lib/registry/patchfile.c: possible file descriptor leak
Summary: [PATCH] source4/lib/registry/patchfile.c: possible file descriptor leak
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P3 minor (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Matthias Dieter Wallnöfer
URL:
Keywords:
Depends on:
Blocks:
 
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".