Bug 762480 (GLUSTER-748) - Issues reported by cppcheck
Summary: Issues reported by cppcheck
Keywords:
Status: CLOSED DUPLICATE of bug 762152
Alias: GLUSTER-748
Product: GlusterFS
Classification: Community
Component: core
Version: 3.0.3
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Anand Avati
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-22 07:11 UTC by Vijay Bellur
Modified: 2015-09-01 23:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Vijay Bellur 2010-03-22 07:11:29 UTC
Mail from Patrick Mathai [pmatthaei at debian dot org] on gluster-devel:

Hello,

I have checked glusterfs 3.0.3 with cppcheck and it gave me the following errors (which must not be true at all):

[./libglusterfs/src/dict.c:179]: (error) Memory leak: newdata
[./libglusterfs/src/dict.c:251]: (error) Memory leak: pair
[./libglusterfs/src/fd.c:464]: (error) Possible null pointer dereference: fd - otherwise it is redundant to check if fd is null at line 466
[./libglusterfs/src/y.tab.c:1743]: (error) Memory leak: node
[./libglusterfs/src/y.tab.c:2067]: (error) Memory leak: cmd
[./xlators/protocol/client/src/client-protocol.c:3434]: (error) Possible null pointer dereference: iobuf - otherwise it is redundant to check if iobuf is null at line 3505
[./xlators/protocol/server/src/server-protocol.c:324]: (error) Possible null pointer dereference: state - otherwise it is redundant to check if state is null at line 344


Could you please have a look at them?

Comment 1 Csaba Henk 2010-03-22 20:34:05 UTC

*** This bug has been marked as a duplicate of bug 420 ***


Note You need to log in before you can comment on or make changes to this bug.