libmsc/update_db_revision_3(): free memleaking db result

Found by ASAN

Change-Id: I2680c60e26b9876b428d4b75323f884f9ecd95b3
This commit is contained in:
Alexander Couzens 2017-02-04 00:20:17 +01:00 committed by Harald Welte
parent e0d5caa916
commit f480b35893
1 changed files with 2 additions and 0 deletions

View File

@ -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 */