Merge pull request #2025 from signalwire/coverity_06042023_mod_av

[mod_av] Coverity CID 1500320 (Resource leak)
This commit is contained in:
Andrey Volk 2023-04-07 00:05:40 +03:00 committed by GitHub
commit 814348c739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1591,6 +1591,8 @@ GCC_DIAG_ON(deprecated-declarations)
context->vid_ready = 1;
switch_queue_push(context->eh.video_queue, img);
context->last_vid_push = switch_time_now();
} else {
switch_img_free(&img);
}
}
}