device: Do not double free the device records list
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 15 Feb 2013 16:59:07 +0000 (17:59 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 15 Feb 2013 16:59:07 +0000 (17:59 +0100)
Typo from the previous commit...

src/device.c

index 29cb671..e972295 100644 (file)
@@ -66,7 +66,6 @@ static void free_device(gpointer data)
 
        near_ndef_records_free(device->records);
 
-       g_list_free(device->records);
        g_free(device->path);
        g_free(device->data);
        g_free(device);