From 04665ce540308475d22ab22f8c04d9dd85e5a6a5 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 17 Sep 2015 15:13:15 +0200 Subject: [PATCH] Fix a memory leak --- src/SERVER/DD_GetData.c | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/SERVER/DD_GetData.c b/src/SERVER/DD_GetData.c index 2ab7ce3..506c3c9 100755 --- a/src/SERVER/DD_GetData.c +++ b/src/SERVER/DD_GetData.c @@ -587,6 +587,8 @@ int GetAttribute(int ID, char *VarName) free(DD_Var[ID]->VarData[il].Variables[i]); DD_Var[ID]->VarData[il].VarNumber = 0; } + //BRE - 17/09/15 - Free variables !! + free(DD_Var[ID]->VarData[il].Variables); } /*============================================================================ -- libgit2 0.21.2