atd

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/atd
Log | Files | Refs

commit c82b7f9f09ee17d6c46e038c8012211431817d20
parent 5b969b7d9162170833f241d4f79e081308c46d7f
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Mon,  2 Aug 2021 10:40:55 -0500

atd: fix memory leak

Diffstat:
Matd.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/atd.c b/atd.c @@ -353,6 +353,7 @@ send_command(int idx, enum atcmd atcmd, union atdata atdata) fprintf(stderr, "send command: %d\n", atcmd); if (atcmd == ATD) { ret = snprintf(fdbufs[idx].in, BUFSIZE, atcmds[atcmd], atdata.dial.num); + free(atdata.dial.num); } else { ret = snprintf(fdbufs[idx].in, BUFSIZE, atcmds[atcmd]); }