Skip to content

Commit

Permalink
[libu] fix mem leak in json indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
babongo committed Mar 2, 2012
1 parent 6e1b05c commit 1ec0897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srcs/toolbox/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ int u_json_index (u_json_t *jo)
dbg_err_if (u_hmap_opts_set_val_type(opts, U_HMAP_OPTS_DATATYPE_POINTER));
dbg_err_if (u_hmap_opts_set_val_freefunc(opts, nopf));
dbg_err_if (u_hmap_easy_new(opts, &hmap));
opts = NULL;
u_hmap_opts_free(opts), opts = NULL;

/* Initialize array elems' indexing. */
jo->icur = 0;
Expand Down

0 comments on commit 1ec0897

Please sign in to comment.