mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
souphttpsrc test: free g_get_current_dir return
This commit is contained in:
parent
a9f01a88b8
commit
ec3c49e958
1 changed files with 4 additions and 2 deletions
|
@ -135,7 +135,9 @@ run_test (gboolean use_https, const gchar * path, gint expected)
|
||||||
if (g_path_is_absolute (ssl_cert_file)) {
|
if (g_path_is_absolute (ssl_cert_file)) {
|
||||||
path = g_strdup (ssl_cert_file);
|
path = g_strdup (ssl_cert_file);
|
||||||
} else {
|
} else {
|
||||||
path = g_build_filename (g_get_current_dir (), ssl_cert_file, NULL);
|
gchar *cwd = g_get_current_dir ();
|
||||||
|
path = g_build_filename (cwd, ssl_cert_file, NULL);
|
||||||
|
g_free (cwd);
|
||||||
}
|
}
|
||||||
|
|
||||||
tlsdb = g_tls_file_database_new (path, &error);
|
tlsdb = g_tls_file_database_new (path, &error);
|
||||||
|
|
Loading…
Reference in a new issue