]> web.ist.utl.pt Git - iaed.git/commitdiff
Updating aula09
authorAlexandre P Francisco <aplf@ist.utl.pt>
Tue, 6 May 2014 15:25:26 +0000 (16:25 +0100)
committerAlexandre P Francisco <aplf@ist.utl.pt>
Tue, 6 May 2014 15:25:26 +0000 (16:25 +0100)
aula09/main.c

index 1ba7423addf45f9f3e9db775b037563679b41bc5..429e07d289c8fc93cf70fe7203d1b6c16871cf3d 100644 (file)
@@ -24,7 +24,7 @@ int main(int argc, char * argv[]) {
   while (lst) {
     aux = lst;
     lst = lst->next;
-    free(aux->item);
+    deleteItem(aux->item);
     free(aux);
   }