diff options
author | sdussud <none@none> | 2006-09-19 07:21:06 -0700 |
---|---|---|
committer | sdussud <none@none> | 2006-09-19 07:21:06 -0700 |
commit | c5a865cb9dc6d04c7da5ddf9360f131a4931968a (patch) | |
tree | f3a2eca6c58a15e1efae2ba1626db43726dbc12e | |
parent | 26ba198477055398633f319757f934b7ce73784e (diff) | |
download | illumos-joyent-c5a865cb9dc6d04c7da5ddf9360f131a4931968a.tar.gz |
6468254 minor memory leak introduced by fix for 6316946
-rw-r--r-- | usr/src/lib/libnisdb/yptol/map_ctrl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/lib/libnisdb/yptol/map_ctrl.c b/usr/src/lib/libnisdb/yptol/map_ctrl.c index e7bdf942ea..98f7046286 100644 --- a/usr/src/lib/libnisdb/yptol/map_ctrl.c +++ b/usr/src/lib/libnisdb/yptol/map_ctrl.c @@ -526,6 +526,7 @@ insert_map_in_list(char *map_name, int unique_value) } new_elt->map_name = strdup(map_name); if (new_elt->map_name == NULL) { /* strdup() failed */ + sfree(new_elt); return (FAILURE); } new_elt->map_id = unique_value; |