Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f2408e7e
Commit
f2408e7e
authored
Jan 20, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Free memory in unit tests. Makes ASAN happier.
parent
36eb0b7a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
storage/maria/unittest/ma_test_loghandler_multigroup-t.c
storage/maria/unittest/ma_test_loghandler_multigroup-t.c
+3
-1
storage/maria/unittest/ma_test_loghandler_nologs-t.c
storage/maria/unittest/ma_test_loghandler_nologs-t.c
+1
-0
unittest/mysys/base64-t.c
unittest/mysys/base64-t.c
+3
-0
No files found.
storage/maria/unittest/ma_test_loghandler_multigroup-t.c
View file @
f2408e7e
...
...
@@ -234,7 +234,7 @@ int main(int argc __attribute__((unused)), char *argv[])
0x55
,
0xAA
,
0x55
,
0xAA
,
0x55
,
0xAA
,
0x55
,
0xAA
,
0x55
,
0xAA
,
0x55
,
0xAA
,
0x55
,
0xAA
,
0x55
};
uchar
*
long_buffer
=
malloc
(
LONG_BUFFER_SIZE
+
LSN_STORE_SIZE
*
2
+
2
)
;
uchar
*
long_buffer
;
char
**
default_argv
;
PAGECACHE
pagecache
;
LSN
lsn
,
lsn_base
,
first_lsn
;
...
...
@@ -255,6 +255,7 @@ int main(int argc __attribute__((unused)), char *argv[])
}
#endif
long_buffer
=
malloc
(
LONG_BUFFER_SIZE
+
LSN_STORE_SIZE
*
2
+
2
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
get_options
(
&
argc
,
&
argv
);
default_argv
=
argv
;
...
...
@@ -758,6 +759,7 @@ int main(int argc __attribute__((unused)), char *argv[])
if
(
maria_log_remove
(
maria_data_root
))
exit
(
1
);
free
(
long_buffer
);
return
(
test
(
exit_status
()));
}
...
...
storage/maria/unittest/ma_test_loghandler_nologs-t.c
View file @
f2408e7e
...
...
@@ -191,6 +191,7 @@ int main(int argc __attribute__((unused)), char *argv[])
if
(
maria_log_remove
(
maria_data_root
))
exit
(
1
);
free
(
long_buffer
);
exit
(
0
);
}
...
...
unittest/mysys/base64-t.c
View file @
f2408e7e
...
...
@@ -91,6 +91,9 @@ main(int argc __attribute__((unused)),char *argv[])
diag
(
"src length: %.8x, dst length: %.8x
\n
"
,
(
uint
)
src_len
,
(
uint
)
dst_len
);
}
free
(
dst
);
free
(
str
);
free
(
src
);
}
my_end
(
0
);
return
exit_status
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment