mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	common: Add missing va_end (#11529)
The va_copy man page states that va_end must be called to revert whatever the copy did. For some implementaions, not calling va_end has no consequences. For others it could leak memory.
This commit is contained in:
		| @@ -206,6 +206,7 @@ public: | ||||
|                 vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args_copy); | ||||
|             } | ||||
| #endif | ||||
|             va_end(args_copy); | ||||
|         } | ||||
|  | ||||
|         entry.level = level; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Steve Grubb
					Steve Grubb