mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
fixed a leak
Original commit message from CVS: fixed a leak
This commit is contained in:
parent
9dd58545dc
commit
d2b2f9e322
1 changed files with 8 additions and 3 deletions
|
@ -113,6 +113,7 @@ plugin_times_older_than_recurse(gchar *path, time_t regtime)
|
||||||
{
|
{
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
struct dirent *dirent;
|
struct dirent *dirent;
|
||||||
|
gchar *pluginname;
|
||||||
|
|
||||||
time_t pathtime = get_time(path);
|
time_t pathtime = get_time(path);
|
||||||
|
|
||||||
|
@ -128,9 +129,13 @@ plugin_times_older_than_recurse(gchar *path, time_t regtime)
|
||||||
while ((dirent = readdir(dir))) {
|
while ((dirent = readdir(dir))) {
|
||||||
/* don't want to recurse in place or backwards */
|
/* don't want to recurse in place or backwards */
|
||||||
if (strcmp(dirent->d_name,".") && strcmp(dirent->d_name,"..")) {
|
if (strcmp(dirent->d_name,".") && strcmp(dirent->d_name,"..")) {
|
||||||
if (!plugin_times_older_than_recurse(
|
pluginname = g_strjoin("/",path,dirent->d_name,NULL);
|
||||||
g_strjoin("/",path,dirent->d_name,NULL), regtime))
|
if (!plugin_times_older_than_recurse(pluginname , regtime)) {
|
||||||
return FALSE;
|
g_free (pluginname);
|
||||||
|
closedir(dir);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
g_free (pluginname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
|
|
Loading…
Reference in a new issue