Revise free process to close leaks

This commit is contained in:
MrDave
2021-03-24 21:10:14 -06:00
committed by Mr-Dave
parent 2efae0227b
commit fb3a6fb079
13 changed files with 378 additions and 103 deletions

View File

@@ -82,7 +82,10 @@ void dbse_global_deinit(struct ctx_motapp *motapp)
indx = 0;
while (motapp->cam_list[indx] != NULL) {
util_free_var(motapp->cam_list[indx]->dbse);
if (motapp->cam_list[indx]->dbse != NULL) {
free(motapp->cam_list[indx]->dbse);
}
motapp->cam_list[indx]->dbse = NULL;
indx++;
}