r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
[samba.git] / source3 / sam / idmap_tdb.c
index 8ab8ec8477073958462bc0670d87caf3a5c13aa4..e89a6cf547cf585b36eb06e04ed62b844d20eb24 100644 (file)
@@ -487,7 +487,7 @@ static NTSTATUS db_idmap_init( char *params )
        BOOL tdb_is_new = False;
 
        /* use the old database if present */
-       tdbfile = strdup(lock_path("winbindd_idmap.tdb"));
+       tdbfile = SMB_STRDUP(lock_path("winbindd_idmap.tdb"));
        if (!tdbfile) {
                DEBUG(0, ("idmap_init: out of memory!\n"));
                return NT_STATUS_NO_MEMORY;