commit | 4e0077b81c4f081e3233bebcc2cb04fd817a8908 | [log] [tgz] |
---|---|---|
author | l.yang <l.yang@mobiletek.cn> | Sun Nov 03 18:21:32 2024 -0800 |
committer | l.yang <l.yang@mobiletek.cn> | Sun Nov 03 18:21:32 2024 -0800 |
tree | cc8184001ed10b4f571218d607076d537d65f200 | |
parent | 06559f6bb6d3f67d6da8e254ca035bedb2de8d6e [diff] [blame] |
Fix the issue where resources may not be released correctly ,memory leak or other undefined behavio Change-Id: I5d2b6a63977b86aab364ebc4d27080f2398c744c
diff --git a/mbtk/libmbtk_lib/common/mbtk_log.c b/mbtk/libmbtk_lib/common/mbtk_log.c index 11ec8fd..fcdf0b1 100755 --- a/mbtk/libmbtk_lib/common/mbtk_log.c +++ b/mbtk/libmbtk_lib/common/mbtk_log.c
@@ -92,6 +92,7 @@ va_start(ap, format); length = vsnprintf(buf, sizeof(buf), format, ap); if (length < 0 || 0 == length) { + va_end(ap); return; }