Commit 04665ce540308475d22ab22f8c04d9dd85e5a6a5

Authored by Benjamin Renard
1 parent 7c416dd4

Fix a memory leak

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/SERVER/DD_GetData.c
@@ -587,6 +587,8 @@ int GetAttribute(int ID, char *VarName) @@ -587,6 +587,8 @@ int GetAttribute(int ID, char *VarName)
587 free(DD_Var[ID]->VarData[il].Variables[i]); 587 free(DD_Var[ID]->VarData[il].Variables[i]);
588 DD_Var[ID]->VarData[il].VarNumber = 0; 588 DD_Var[ID]->VarData[il].VarNumber = 0;
589 } 589 }
  590 + //BRE - 17/09/15 - Free variables !!
  591 + free(DD_Var[ID]->VarData[il].Variables);
590 } 592 }
591 593
592 /*============================================================================ 594 /*============================================================================