commit | 022721fe49cca43b97f31986c6f58b3596aabc32 | [log] [tgz] |
---|---|---|
author | Alexander Couzens <lynxis@fe80.eu> | Sat Feb 04 00:20:17 2017 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Tue Feb 28 18:36:35 2017 +0000 |
tree | 11aabd2c30c80063c7424c491466bd5a255364a7 | |
parent | 911dffe091f209e6c875cf9ae88ca7a94a26013c [diff] [blame] |
libmsc/update_db_revision_3(): free memleaking db result Found by ASAN Change-Id: I2680c60e26b9876b428d4b75323f884f9ecd95b3
diff --git a/openbsc/src/libmsc/db.c b/openbsc/src/libmsc/db.c index 68dac76..9fa6415 100644 --- a/openbsc/src/libmsc/db.c +++ b/openbsc/src/libmsc/db.c
@@ -346,6 +346,8 @@ LOGP(DDB, LOGL_ERROR, "Failed to commit the transaction (upgrade from rev 3)\n"); return -EINVAL; + } else { + dbi_result_free(result); } /* Shrink DB file size by actually wiping out SMS_3 table data */