Skip to content

Commit

Permalink
Merge pull request #157 from flaviojs/fix-memory-leak-vtty_create
Browse files Browse the repository at this point in the history
Fix memory leak in vtty_create
  • Loading branch information
grossmj authored Mar 11, 2024
2 parents 0ec9f78 + 55cbabd commit 56ff72d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/dev_vtty.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ vtty_t *vtty_create(vm_instance_t *vm,char *name,int type,int tcp_port,

default:
fprintf(stderr,"tty_create: bad vtty type %d\n",vtty->type);
free(vtty);
return NULL;
}

Expand Down

0 comments on commit 56ff72d

Please sign in to comment.