summaryrefslogtreecommitdiffstats
path: root/ucad.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-26 16:28:20 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-26 16:28:20 +0200
commit2c98501d16f12dc260863f950cb1492a309eb505 (patch)
treeacec98433ab7cf0e2928d8ce146a6f165ca92f18 /ucad.c
parent1d43a09135be31a2d68afa8e50a665c333ecb084 (diff)
downloaduca-net-2c98501d16f12dc260863f950cb1492a309eb505.tar.gz
uca-net-2c98501d16f12dc260863f950cb1492a309eb505.tar.bz2
uca-net-2c98501d16f12dc260863f950cb1492a309eb505.tar.xz
uca-net-2c98501d16f12dc260863f950cb1492a309eb505.zip
Fix a few minor leaks
Diffstat (limited to 'ucad.c')
-rw-r--r--ucad.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ucad.c b/ucad.c
index e56ee42..020fe86 100644
--- a/ucad.c
+++ b/ucad.c
@@ -230,6 +230,7 @@ handle_get_property_request (GSocketConnection *connection, UcaCamera *camera, g
reply.type = request->type;
strncpy (reply.property_value, g_value_get_string (&str_value), sizeof (reply.property_value));
send_reply (connection, &reply, sizeof (reply), error);
+ g_value_unset (&str_value);
}
static void