mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
FS-8904 #resolve [Fix mem leak in img_write_text]
This commit is contained in:
parent
550029b80e
commit
ce8761a427
@ -1165,6 +1165,8 @@ SWITCH_DECLARE(switch_image_t *) switch_img_write_text_img(int w, int h, switch_
|
|||||||
txt, NULL, fg, bg, 0, 0);
|
txt, NULL, fg, bg, 0, 0);
|
||||||
switch_img_txt_handle_destroy(&txthandle);
|
switch_img_txt_handle_destroy(&txthandle);
|
||||||
|
|
||||||
|
switch_safe_free(duptxt);
|
||||||
|
|
||||||
return txtimg;
|
return txtimg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user