mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-14 17:02:09 -05:00
Implement util_free_var function
This commit is contained in:
10
src/util.cpp
10
src/util.cpp
@@ -1221,3 +1221,13 @@ void util_exec_command(struct ctx_cam *cam, const char *command, char *filename,
|
||||
MOTION_LOG(DBG, TYPE_EVENTS, NO_ERRNO
|
||||
,_("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