Skip to main content
Code Review

Return to Question

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

This is sort of a follow-up to a post I created about 10 days ago, but I have completed the implementation: Designing function prototypes for a singly-linked list API in C Designing function prototypes for a singly-linked list API in C.

This is sort of a follow-up to a post I created about 10 days ago, but I have completed the implementation: Designing function prototypes for a singly-linked list API in C.

This is sort of a follow-up to a post I created about 10 days ago, but I have completed the implementation: Designing function prototypes for a singly-linked list API in C.

edited tags
Link
200_success
  • 145.6k
  • 22
  • 190
  • 479
added 6 characters in body
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Singly-linked List Librarylist library

Here is my number one concern: if I run Valgrind on a test file that does a lot of operations, I don't have any noticeable memory leaks, but Valgrind complains that sllist_destroy()sllist_destroy() performs an invalid free()free(). That is, it attempts to free something that is either already freed or not at the beginning of a heap block. This saddens me, as I cannot figure out why this is occurring. So please take careful notice of the sllist_destroy()sllist_destroy() function.

Singly-linked List Library

Here is my number one concern: if I run Valgrind on a test file that does a lot of operations, I don't have any noticeable memory leaks, but Valgrind complains that sllist_destroy() performs an invalid free(). That is, it attempts to free something that is either already freed or not at the beginning of a heap block. This saddens me, as I cannot figure out why this is occurring. So please take careful notice of the sllist_destroy() function.

Singly-linked list library

Here is my number one concern: if I run Valgrind on a test file that does a lot of operations, I don't have any noticeable memory leaks, but Valgrind complains that sllist_destroy() performs an invalid free(). That is, it attempts to free something that is either already freed or not at the beginning of a heap block. This saddens me, as I cannot figure out why this is occurring. So please take careful notice of the sllist_destroy() function.

add unit-testing tag, fix links
Source Link
rolfl
  • 98.1k
  • 17
  • 219
  • 419
Loading
Added unit.c
Source Link
oddlogic
  • 83
  • 1
  • 6
Loading
Added more info
Source Link
oddlogic
  • 83
  • 1
  • 6
Loading
Tweeted twitter.com/#!/StackCodeReview/status/339654275384889345
added 180 characters in body
Source Link
oddlogic
  • 83
  • 1
  • 6
Loading
Source Link
oddlogic
  • 83
  • 1
  • 6
Loading
lang-c

AltStyle によって変換されたページ (->オリジナル) /