Is memory leak caused by global variables?
        Posted  
        
            by user297535
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user297535
        
        
        
        Published on 2010-03-25T07:45:50Z
        Indexed on 
            2010/03/25
            7:53 UTC
        
        
        Read the original article
        Hit count: 382
        
When I checked my application for memory leaks it is showing 12 leaks. What will be the effect of this?
I used global variables as shown below
#import "file1.m"
int num;
#import "file2.m"
extern int num;
num = 10;
Can this cause memory leaks?
Anyone please help. I am a beginner in programming.
© Stack Overflow or respective owner