Browse Source

fix further memory leaks from recent code additions

tags/v1.4.0
Nils 4 years ago
parent
commit
b14a4466f9
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/nsmd.cpp

+ 5
- 1
src/nsmd.cpp View File

@@ -268,8 +268,11 @@ public:
free(client_id);
if (capabilities)
free(capabilities);
if (name_with_id)
free(name_with_id);

name = executable_path = client_id = capabilities = NULL;

name = executable_path = client_id = capabilities = name_with_id = NULL;
}
};

@@ -2486,6 +2489,7 @@ int main(int argc, char *argv[])
asprintf( &spath, "%s/%s", session_root, load_session); // Build the session path. --load-session works with --session-root
MESSAGE( "LOAD SESSION %s", spath);
load_session_file( spath );
free ( spath );
}

if ( detach )


Loading…
Cancel
Save