Skip to content

Commit

Permalink
fixed memory leak in japi
Browse files Browse the repository at this point in the history
// BelongsTo: CS-582
  • Loading branch information
jgabler-hpc committed Sep 17, 2024
1 parent 51eaea4 commit d3d48e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions source/libs/gdi/sge_gdi_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ static void
gdi_data_ts_destroy() {
DENTER(TOP_LAYER);
pthread_mutex_destroy(&ts.mutex);

/* @todo CS-591 don't we have to free all the other attributes as well?
* char *master_host;
* u_long64 timestamp_qmaster_file;
* char *ssl_private_key;
* char *ssl_certificate;
* sge_csp_path_class_t *csp_path_obj;
*/
DRETURN_VOID;
}

Expand Down
1 change: 1 addition & 0 deletions source/libs/japi/japi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ int japi_init_mt(dstring *diag)
lFreeList(&alp);
DRETURN(DRMAA_ERRNO_INTERNAL_ERROR);
}
lFreeList(&alp);

DRETURN(DRMAA_ERRNO_SUCCESS);
}
Expand Down
2 changes: 0 additions & 2 deletions source/libs/uti/sge_csp_path.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,3 @@ sge_csp_path_class_t *
sge_csp_path_class_create(sge_error_class_t *eh);

void sge_csp_path_class_destroy(sge_csp_path_class_t **pst);

void sge_csp_path_class_destroy(sge_csp_path_class_t **pst);

0 comments on commit d3d48e7

Please sign in to comment.