Delete an array on structure

Home Forums C Programming Delete an array on structure

This topic contains 0 replies, has 1 voice, and was last updated by  glimpse 9 years, 5 months ago.

  • Author
    Posts
  • #2111

    glimpse
    Member

    Dear friends.
    I composed an array on a structure and fill the structures. Then I tried to free it again with the free-function, but I still get an error under Visual Studio.
    How do I do it correctly?

    Here my code for allocating and filling:

    and then I tried to free SoilVG with
    free(SoilVG);

    Thank you in advance.

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble