• Paul Eggert's avatar
    * gnutls.c: Use Emacs's memory allocators. · 9cf9f756
    Paul Eggert authored
    Without this change, the gnutls library would invoke malloc etc.
    directly, which causes problems on non-SYNC_INPUT hosts, and which
    runs afoul of improving memory_full behavior.
    (fn_gnutls_global_set_mem_functions): New macro or function pointer.
    (emacs_gnutls_global_init): Use it to specify xmalloc, xrealloc,
    xfree instead of the default malloc, realloc, free.
    (Fgnutls_boot): No need to check for memory allocation failure,
    since xmalloc does that for us.
ChangeLog 144 KB