]> git.eshelyaron.com Git - emacs.git/commit
Fix memory leak of cwd string in emacsclient (Bug#26628)
authorAnders Waldenborg <anders@0x63.nu>
Sun, 23 Apr 2017 19:15:46 +0000 (21:15 +0200)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 1 Jun 2017 02:58:30 +0000 (22:58 -0400)
commitc221f1466ed7e0f11f142d9cb3c0247b10e511c6
treea49bcd9b7b917679047a8cf5ace0422d9995747a
parent28445aee59d54a8560aa4f33fa50f225b54317dc
Fix memory leak of cwd string in emacsclient (Bug#26628)

* lib-src/emacsclient.c (main): emacsclient retrieves the current
working directory using get_current_dir_name which returns a newly
allocated string.  Make sure this string is freed before exiting.

Copyright-paperwork-exempt: yes
lib-src/emacsclient.c