projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0e8f66
)
Fixed NULL pointer bug.
author
Sven Trenkel
<collectd@semidefinite.de>
Mon, 28 Sep 2009 23:02:48 +0000
(
01:02
+0200)
committer
Sven Trenkel
<collectd@semidefinite.de>
Mon, 28 Sep 2009 23:02:48 +0000
(
01:02
+0200)
src/netapp.c
patch
|
blob
|
history
diff --git
a/src/netapp.c
b/src/netapp.c
index
55f449b
..
0eb475a
100644
(file)
--- a/
src/netapp.c
+++ b/
src/netapp.c
@@
-243,6
+243,9
@@
static void free_volume (volume_t *volume) /* {{{ */
{
volume_t *next;
+ if (volume == NULL)
+ return;
+
next = volume->next;
sfree (volume->name);
@@
-255,6
+258,9
@@
static void free_disk (disk_t *disk) /* {{{ */
{
disk_t *next;
+ if (disk == NULL)
+ return;
+
next = disk->next;
sfree (disk->name);