Permalink
Browse files

[libu] fix mem leak in json indexer

  • Loading branch information...
1 parent 6e1b05c commit 1ec0897e4c253a35ad0229f906da37804925944c @babongo babongo committed Mar 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 srcs/toolbox/json.c
View
@@ -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;

0 comments on commit 1ec0897

Please sign in to comment.