From f21fbc11a3d212f8aa7878182984f4233f99c33e Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 8 May 2006 21:18:01 +0000 Subject: [PATCH] Plug a memory leak. --- src/plugins/select/bluegene/block_allocator/block_allocator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/select/bluegene/block_allocator/block_allocator.c b/src/plugins/select/bluegene/block_allocator/block_allocator.c index b0d37007319..3e2e2954891 100644 --- a/src/plugins/select/bluegene/block_allocator/block_allocator.c +++ b/src/plugins/select/bluegene/block_allocator/block_allocator.c @@ -182,7 +182,7 @@ extern int parse_blockreq(void **dest, slurm_parser_enum_t type, {NULL} }; s_p_hashtbl_t *tbl; - char *tmp=NULL; + char *tmp = NULL; blockreq_t *n = NULL; tbl = s_p_hashtbl_create(block_options); @@ -198,6 +198,7 @@ extern int parse_blockreq(void **dest, slurm_parser_enum_t type, n->conn_type = SELECT_MESH; else n->conn_type = SELECT_SMALL; + xfree(tmp); if (!s_p_get_uint16(&n->nodecards, "Nodecards", tbl)) n->nodecards = 0; -- GitLab