diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-02-04 00:20:17 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-02-28 18:36:35 +0000 |
commit | f480b3589379be870453826ab7f1abaffb6f6315 (patch) | |
tree | 11aabd2c30c80063c7424c491466bd5a255364a7 /openbsc | |
parent | e0d5caa91694e945f4f4af8d424161a4c5e1ec18 (diff) |
libmsc/update_db_revision_3(): free memleaking db result
Found by ASAN
Change-Id: I2680c60e26b9876b428d4b75323f884f9ecd95b3
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/libmsc/db.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/db.c b/openbsc/src/libmsc/db.c index 68dac766c..9fa64152f 100644 --- a/openbsc/src/libmsc/db.c +++ b/openbsc/src/libmsc/db.c @@ -346,6 +346,8 @@ static int update_db_revision_3(void) 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 */ |