GNUWeeb / GNUWeebBot

High-performance bot Telegram, running on Linux environment, written in C.
GNU General Public License v2.0
13 stars 8 forks source link

adding functions and logic for parsing the photo events #4

Closed ALiwoto closed 3 years ago

ALiwoto commented 3 years ago

Signed-off-by: Aliwoto aminnimaj@gmail.com

ammarfaizi2 commented 3 years ago

Please fix the memory leak issue, we need to reclaim any unused resource.

Every calloc must be free-ed.

See tg_event_destroy_text in tg_event.c. You have to implement the same thing for everything you have calloc-ed.

ammarfaizi2 commented 3 years ago

It's very easy to do it myself, but you won't fix memory leak issue in the future if I fix this myself.

ALiwoto commented 3 years ago

@ammarfaizi2 thank you for reminding me! you are the best teacher I've ever had!

ammarfaizi2 commented 3 years ago

Good job, thanks. I am merging this.