Skip to content
Extraits de code Groupes Projets
Vérifiée Valider b35c2348 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Less dirty bombs

parent 12816403
Branches
Étiquettes
1 requête de fusion!97Update fix
......@@ -7,6 +7,7 @@
#include <strings.h>
#include <limits.h>
#include <stdlib.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
......@@ -339,7 +340,8 @@ __handle_got_json(volatile sqlite3 *db, struct lkt_repo *repo,
int32_t integer, err;
struct kara kara;
long filestamp = 0, timestamp = 0;
char mkvpropedit[PATH_MAX], url[URL_MAX_LEN];
char *mkvpropedit = safe_zero_malloc(sizeof(char) * PATH_MAX);
char *url = safe_zero_malloc(sizeof(char) * URL_MAX_LEN);
int current_id;
struct lkt_state *srv = repo->srv;
struct timespec time_sleep = {
......@@ -448,6 +450,8 @@ do_it:
}
LOG_INFO("REPO", "Updated %ld karas and ignored %ld karas, total is %ld",
update_count, ignored_count, len);
free(mkvpropedit);
free(url);
}
static inline void
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter