Implement util_free_var function

This commit is contained in:
MrDave
2021-03-22 20:34:36 -06:00
committed by Mr-Dave
parent f10484f174
commit e0f2011d69
14 changed files with 98 additions and 205 deletions

View File

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