mirror of
https://gitlab.com/niansa/inotifyrun.git
synced 2025-03-06 20:48:32 +01:00
Fixed double-malloc
This commit is contained in:
parent
ab5a625706
commit
0fa3642135
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ int main(int argc, char **argv) {
|
|||
// Get array of files and commands
|
||||
libcatch_behavior = 0;
|
||||
struct fcmd_pair *assocs = (struct fcmd_pair *)(argv + 1);
|
||||
struct fcmdwatcher_pair *assocs_watches = malloc((sizeof(struct fcmdwatcher_pair) * ((argc - 1) / 2)) + 1);
|
||||
struct fcmdwatcher_pair *assocs_watches;
|
||||
struct fcmdwatcher_pair *watcherpair_ptr;
|
||||
CATCH(assocs_watches = malloc((sizeof(struct fcmdwatcher_pair) * ((argc - 1) / 2)) + 1));
|
||||
// Initlialise inotify further while checking if all files are actual files
|
||||
|
|
Loading…
Add table
Reference in a new issue