]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8904 #resolve [Fix mem leak in img_write_text]
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 5 Mar 2016 01:52:23 +0000 (19:52 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 5 Mar 2016 01:52:23 +0000 (19:52 -0600)
src/switch_core_video.c

index 4758706cacbd9219c70c952747a09c0f3ce2e53c..5bbe826df37ad2ade46ce51a785bae8805464153 100644 (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;
 }