mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-14 17:02:09 -05:00
Revise free process to close leaks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user