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

@@ -1222,12 +1222,3 @@ void util_exec_command(struct ctx_cam *cam, const char *command, char *filename,
,_("Executing external command '%s'"), stamp);
}
/* Free a pointer and set to null */
void util_free_var(void *parm)
{
if (parm != NULL) {
free(parm);
}
parm = NULL;
}