Skip to content

Commit 45732fd

Browse files
committed
hwloc/base: fix a memory leak in buffer_cleanup()
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 2739346 commit 45732fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opal/mca/hwloc/base/hwloc_base_frame.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/*
22
* Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved.
33
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
4+
* Copyright (c) 2016 Research Organization for Information Science
5+
* and Technology (RIST). All rights reserved.
46
* $COPYRIGHT$
57
*
68
* Additional copyrights may follow
@@ -312,6 +314,7 @@ static void buffer_cleanup(void *value)
312314
free(ptr->buffers[i]);
313315
}
314316
}
317+
free(ptr);
315318
}
316319

317320
opal_hwloc_print_buffers_t *opal_hwloc_get_print_buffer(void)

0 commit comments

Comments
 (0)