mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	fix a memory leak
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1280 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									c979b87fea
								
							
						
					
					
						commit
						c2db5f8864
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -91,7 +91,7 @@ void pa_log_levelv_meta(
 | 
			
		|||
        va_list ap) {
 | 
			
		||||
    
 | 
			
		||||
    const char *e;
 | 
			
		||||
    char *text, *t, *n, *location = pa_xstrdup("");
 | 
			
		||||
    char *text, *t, *n, *location;
 | 
			
		||||
    
 | 
			
		||||
    assert(level < PA_LOG_LEVEL_MAX);
 | 
			
		||||
    assert(format);
 | 
			
		||||
| 
						 | 
				
			
			@ -108,6 +108,8 @@ void pa_log_levelv_meta(
 | 
			
		|||
        location = pa_sprintf_malloc("[%s:%i %s()] ", file, line, func);
 | 
			
		||||
    else if (file)
 | 
			
		||||
        location = pa_sprintf_malloc("%s: ", pa_path_get_filename(file));
 | 
			
		||||
    else
 | 
			
		||||
        location = pa_xstrdup("");
 | 
			
		||||
 | 
			
		||||
    if (!pa_utf8_valid(text))
 | 
			
		||||
        pa_log_level(level, __FILE__": invalid UTF-8 string following below:");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue