test: initialize capture structure before freeing

ASTERISK-30232 #close

Change-Id: I2603e2cef8f93f6b0a6ef39f7eac744251bb3902
This commit is contained in:
Philip Prindeville
2022-09-15 21:35:21 -06:00
committed by Friendly Automation
parent 1ed4518328
commit 3e7ce90f9c
3 changed files with 29 additions and 2 deletions

View File

@@ -438,6 +438,16 @@ int __ast_test_status_update(const char *file, const char *func, int line, struc
} \
})
/*!
* \brief Initialize the capture structure.
*
* \since 16.30.0, 18.16.0, 19.8.0, 20.1.0
*
* \param capture The structure describing the child process and its
* associated output.
*/
void ast_test_capture_init(struct ast_test_capture *capture);
/*!
* \brief Release the storage (buffers) associated with capturing
* the output of an external child process.