Bug 1376665 - __inode_ctx_put: fix mem leak on failure
Summary: __inode_ctx_put: fix mem leak on failure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: core
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Prasanna Kumar Kalever
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On: 1338733
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-16 06:44 UTC by Prasanna Kumar Kalever
Modified: 2018-02-01 05:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1338733
Environment:
Last Closed: 2018-02-01 05:12:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Prasanna Kumar Kalever 2016-09-16 06:44:53 UTC
+++ This bug was initially created as a clone of Bug #1338733 +++

Description of problem:
up on failure case __inode_ctx_put need to free the allocated memory                      
                                                                                               
Indirect leak of 104 byte(s) in 1 object(s) allocated from:                            
#0 0x496669 in __interceptor_calloc (/usr/local/sbin/glusterfsd+0x496669)                                           
#1 0x7f8a288522f9 in __gf_calloc libglusterfs/src/mem-pool.c:117                                        
#2 0x7f8a17235962 in __posix_acl_ctx_get xlators/system/posix-acl/src/posix-acl.c:308

version:
3.1

COMMIT: http://review.gluster.org/14505 committed in master by Jeff Darcy (jdarcy) 
------
commit a04eaf366779a0632e5b9cdd6d63de0eb62f7449
Author: Prasanna Kumar Kalever <prasanna.kalever>
Date:   Mon May 23 14:31:51 2016 +0530

    __inode_ctx_put: fix mem leak on failure
    
    up on failure case __inode_ctx_put need to free the allocated memory
    
    Indirect leak of 104 byte(s) in 1 object(s) allocated from:
        #0 0x496669 in __interceptor_calloc (/usr/local/sbin/glusterfsd+0x496669)
        #1 0x7f8a288522f9 in __gf_calloc libglusterfs/src/mem-pool.c:117
        #2 0x7f8a17235962 in __posix_acl_ctx_get xlators/system/posix-acl/src/posix-acl.c:308
    
    Change-Id: I0ce6da3967c55931a70f77d8551ccf52e4cdfda3
    BUG: 1338733
    Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever>
    Reviewed-on: http://review.gluster.org/14505
    Tested-by: Prasanna Kumar Kalever <pkalever>
    Smoke: Gluster Build System <jenkins.com>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.com>
    Reviewed-by: Jeff Darcy <jdarcy>

Comment 5 Amar Tumballi 2018-02-01 05:12:03 UTC
Thank you for the bug report. 

This particular bug was fixed and a update package was published. Please feel free to report any further bugs you find, or make further reports if this bug is not fixed after you install the update.

(RHGS-3.3.1 should have all the fixes)


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