fix(util/stackinfo): memory leak at get_stack_size
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
74dfdd02de
commit
75f8d56eb1
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ size_t get_stack_size() {
|
|||
void * ptr;
|
||||
size_t result;
|
||||
pthread_attr_getstack (&attr, &ptr, &result);
|
||||
pthread_attr_destroy(&attr);
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue