summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-02-04 00:20:17 +0100
committerHarald Welte <laforge@gnumonks.org>2017-02-28 18:36:35 +0000
commitf480b3589379be870453826ab7f1abaffb6f6315 (patch)
tree11aabd2c30c80063c7424c491466bd5a255364a7
parente0d5caa91694e945f4f4af8d424161a4c5e1ec18 (diff)
libmsc/update_db_revision_3(): free memleaking db result
-rw-r--r--openbsc/src/libmsc/db.c2
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 */