Skip to content

Commit

Permalink
Update data_structures/linked_list/stack_using_linked_lists.c
Browse files Browse the repository at this point in the history
Co-authored-by: David Leal <[email protected]>
  • Loading branch information
Shwetik and Panquesito7 authored Sep 30, 2020
1 parent 400218f commit 4d8bfe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_structures/linked_list/stack_using_linked_lists.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ void pop(struct node *p)
{
item = top->info;
temp = top;
top = top->link;
free(temp);
top = top->link;
free(temp);
printf("Element popped is%d\n", item);
}
}
Expand Down

0 comments on commit 4d8bfe2

Please sign in to comment.