mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 11:40:22 +00:00
CID 460738 fix
Fixed minor Coverity complaint (allocation check after first use).
This commit is contained in:
@@ -155,11 +155,11 @@ static void * audio_cap_jack_init(struct module *parent, const char *cfg)
|
||||
strcpy(client_name, PACKAGE_NAME);
|
||||
|
||||
struct state_jack_capture *s = (struct state_jack_capture *) calloc(1, sizeof(struct state_jack_capture));
|
||||
s->parent = parent;
|
||||
if(!s) {
|
||||
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Unable to allocate memory.\n");
|
||||
return NULL;
|
||||
}
|
||||
s->parent = parent;
|
||||
s->libjack = open_libjack();
|
||||
if (s->libjack == NULL) {
|
||||
free(s);
|
||||
|
||||
Reference in New Issue
Block a user