[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

freeing the memory from build_string

From: Jarek Czekalski
Subject: freeing the memory from build_string
Date: Thu, 31 Oct 2013 07:58:46 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0

I was trying to google for Elisp memory management, but found nothing.

I don't understand in what way the memory is freed, that is allocated by build_string. The use case is in keyboard.c, cmd_error_internal.

    call3 (Vcommand_error_function, data,
       context ? build_string (context) : empty_unibyte_string,

Here "context" is a "const char *" function argument, passed to cmd_error_internal.

The function that receives the lisp string context is a user function, usually not used. What makes as sure, that the memory allocated for the string inside lisp object will ever be returned?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]