wcdb icon indicating copy to clipboard operation
wcdb copied to clipboard

Potential memory leak -03.

Open rachyyyy opened this issue 3 years ago • 0 comments

The language of WCDB

Java

The platform of WCDB

Android

What's the issue?

Potential memory leak in mm_backup.c line 504. vt_sql is not freed before the if condition will cause a memory leak. Doc says "The sqlite3_mprintf() and sqlite3_vmprintf() routines write their results into memory obtained from sqlite3_malloc64(). The strings returned by these two routines should be released by sqlite3_free()."

1662192026825

rachyyyy avatar Sep 03 '22 08:09 rachyyyy