Patch some memory leaks.
authorGuy Harris <guy@alum.mit.edu>
Thu, 19 Mar 2015 00:27:57 +0000 (17:27 -0700)
committerGuy Harris <guy@alum.mit.edu>
Thu, 19 Mar 2015 00:28:40 +0000 (00:28 +0000)
commit1fdfee69d6a96b66719d34651dfa4bdc852a23ae
tree3d7967979f9db4adba2340149517fa82b39222db
parentab45f1d29006d65e713f8e0bb5dc08667a9e8b80
Patch some memory leaks.

capture_dev_user_descr_find() and capture_dev_user_cfilter_find() return
g_malloc()ated strings; we don't need to g_strdup() them to get a
g_malloc()ated string, and we *do* need to free them if we aren't going
to use them any more.

Document that while we're at it, and give more details for the functions
returning integer user-specified interface parameters as well.

Change-Id: Icf98a48992b1c4168ead54bdc4cc2847da89d665
Reviewed-on: https://code.wireshark.org/review/7745
Reviewed-by: Guy Harris <guy@alum.mit.edu>
ui/capture_ui_utils.c
ui/capture_ui_utils.h
ui/qt/capture_interfaces_dialog.cpp
ui/qt/manage_interfaces_dialog.cpp