frontend/variable.c, remove memory leak

This commit is contained in:
h_vogt 2016-01-02 14:04:31 +01:00 committed by rlar
parent ac726f0cf4
commit 8480898399
1 changed files with 2 additions and 0 deletions

View File

@ -390,6 +390,8 @@ free_struct_variable(struct variable *v)
{
while (v) {
struct variable *next_v = v->va_next;
if (v->va_name)
tfree(v->va_name);
if (v->va_type == CP_LIST)
free_struct_variable(v->va_vlist);
if (v->va_type == CP_STRING)