FS-8904 #resolve [Fix mem leak in img_write_text]

This commit is contained in:
Anthony Minessale 2016-03-04 19:52:23 -06:00
parent 550029b80e
commit ce8761a427
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}