diff --git a/dll b/dll
deleted file mode 100755
index f3972343c314421595a2c07665b87c0952269e94..0000000000000000000000000000000000000000
Binary files a/dll and /dev/null differ
diff --git a/doubly_linked_list.c b/doubly_linked_list.c
index 290c2d904a4ca057dc4a164eb876a515b670d63d..628e8659be0fa117a7ba651943d9593d44070c22 100644
--- a/doubly_linked_list.c
+++ b/doubly_linked_list.c
@@ -193,13 +193,17 @@ int dll_pop(dll_t *list){
     }
     else{
         free(list->tete);
+        list->tete = NULL;
     }
     return val;
     
 }
 // vide la liste
 void dll_destroy(dll_t *list){
-    assert(!dll_is_empty(*list));
+    
+    while(!dll_is_empty(*list)){
+        dll_pop(list);
+    }
 }
 
 
@@ -227,5 +231,7 @@ int main(){
     val = dll_pop(&list);
     printf("%d popped from dll\n",val);
     dll_print(list);
+    dll_destroy(&list);
+    printf("destroying the list, empty :%d\n",dll_is_empty(list));
     return 0;
 }
\ No newline at end of file
diff --git a/sorted_list b/sorted_list
deleted file mode 100755
index 2d29e0912c59dca443222d91b64db3469ae950a9..0000000000000000000000000000000000000000
Binary files a/sorted_list and /dev/null differ