Skip to content

Commit

Permalink
NMDP: fixed small memory leak in stored/ndmptape.c
Browse files Browse the repository at this point in the history
"handle->host" was not freed before
  • Loading branch information
pstorz committed Dec 19, 2018
1 parent abb8ba7 commit 2ec7b57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/stored/ndmp_tape.cc
Expand Up @@ -1264,9 +1264,8 @@ extern "C" void *HandleNdmpConnectionRequest(ConfigurationParser *config, void *
free(sess);

close(handle->fd);
if (handle->jcr) {
FreeJcr(handle->jcr);
}
if (handle->jcr) FreeJcr(handle->jcr);
if (handle->host) free(handle->host);
free(handle);

return NULL;
Expand Down

0 comments on commit 2ec7b57

Please sign in to comment.