fix(util/stackinfo): memory leak at get_stack_size

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-01 19:17:28 -08:00
parent 74dfdd02de
commit 75f8d56eb1

View file

@ -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