Skip to content

free array before return#5

Open
hankai17 wants to merge 1 commit intosylar-yin:masterfrom
hankai17:master
Open

free array before return#5
hankai17 wants to merge 1 commit intosylar-yin:masterfrom
hankai17:master

Conversation

@hankai17
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@pusidun pusidun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mybe void * array[size] will be better? Refereing to Linux manual, in line51: backtrace_symbols(array, s),array was malloced by backtrace_symbols() function,and we just should free the return value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants