summaryrefslogtreecommitdiff
path: root/lib/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hash.c')
-rw-r--r--lib/hash.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 3736b80..58b6f9f 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -95,7 +95,8 @@ static void Supprimer(_ListeChaine * l, char *Nom)
}
}
-static void Detruit(_ListeChaine * l) {
+static void Detruit(_ListeChaine * l)
+{
_ListeChaine l_aux = NULL;
while (*l) {
@@ -180,13 +181,14 @@ int Initialise(_TableauVariable * t)
return (i);
}
-void DetruitTab(_TableauVariable * t){
+void DetruitTab(_TableauVariable * t)
+{
int i;
for (i = 0; i < strlen(CHAINEHACHAGE); i++) {
Detruit(&((*t)[i]));
}
-
+
free(*t);
*t = NULL;
}