mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 10:07:26 +00:00
[mod_imagick] Coverity CID 1500258 (Resource leak)
This commit is contained in:
parent
73ea37c5ab
commit
0e9954467f
@ -384,6 +384,7 @@ static switch_status_t read_page(pdf_file_context_t *context)
|
|||||||
if (ret == MagickFalse && context->exception->severity != UndefinedException) {
|
if (ret == MagickFalse && context->exception->severity != UndefinedException) {
|
||||||
CatchException(context->exception);
|
CatchException(context->exception);
|
||||||
free(storage);
|
free(storage);
|
||||||
|
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -397,6 +398,8 @@ static switch_status_t read_page(pdf_file_context_t *context)
|
|||||||
|
|
||||||
if (ret == MagickFalse && context->exception->severity != UndefinedException) {
|
if (ret == MagickFalse && context->exception->severity != UndefinedException) {
|
||||||
CatchException(context->exception);
|
CatchException(context->exception);
|
||||||
|
switch_img_free(&img);
|
||||||
|
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user