mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-25 04:34:15 +00:00
FS-8904 #resolve [Fix mem leak in img_write_text]
This commit is contained in:
1 parent
550029b80e
commit
ce8761a427
1 file changed
+2
@@ -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);
|
||||
switch_img_txt_handle_destroy(&txthandle);
|
||||
|
||||
switch_safe_free(duptxt);
|
||||
|
||||
return txtimg;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user